update NEWS portion on website via EMAIL?
is it possible to update a portion of our website via email (if a blank email is sent, the dhtml window will be hidden) if an email with text is sent, it will show the box, saying NEWS and a border, with the text sent via email inside...
when you write again, it would erase the first and post the new text... email a blank email, text box goes away compeletly...
i need a master!
teach me!
thank you
pj
pjrey
Junior Poster in Training
54 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
i have searched already, that is why i am posting here.. i found nothing.. i just searched over at hotscripts, found ntohing there as well... does anyone know if it is possible to do what i ask? i would imagine it is..
i dont know where to start... but i imagine someone knows...
any help and i would greatly appreciate it!
thank you
pj
pjrey
Junior Poster in Training
54 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
I cant do it via email, incoming mail servers are not easy to access
in php its a trivial matter
this code embeds in the html at the point the news is to appear
<?php $content=filegetcontents('path to uploadfile');
/* code to check & sanitize $content per your requirments */
if !$content { echo '<div class=\'filler\'>watch this space for news updates</div>';
exit; }
echo "<div class='news'>$content</div>"; ?>
to get the news text
and an upload link or ftp to send the data
its not the approach you asked for, but it may work for you, or a perl guru can produce similar code
almostbob
Posting Sensei
3,148 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
considering the thread is almost a year old.......
unsolved, of vague interest to me, an alternate approach if the op is interested enough to return.
almostbob
Posting Sensei
3,148 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
pjrey
Junior Poster in Training
54 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0