Ok, I am really new at PHP and I have no access to MySql. So after endless hours of reading the PHP manual I have the start of what I want. There are two problems I am having right now.
Only one shout is wrote to the file and displayed. When you make a new shout the old one just gets deleted. I would like to display the last 10 and then have the rest on some kind of archieve so a user could click a link to see them. Like page 1,2,3 ect...
The text that is displayed does not seem to be affected by the css. Not sure what I did wrong there.
Here is the script so far
<?php
if(!$name) $name = ("anonymous");
if(!$message) die("<meta http-equiv=\"refresh\" content=\"0;
URL=testpage.php\">");
if($url) $author = "<a href=\"\" onclick=\"pop('$url'); return
false;\">$name</a>";
else $author = $name;
$shouts = fopen ("shout.txt","w");
fwrite ($shouts, "<h1>$author</h1>$message\n");
fclose ($shouts);
Header ("Location: $HTTP_REFERER");
?>
Also here is what it looks like working
SHOUTBOX
Any help would be appreciated. i.e. point me in the right direction or offer a snippit of code. I was doin ok till this point but I am lost at the moment.