<?php
$user = $_POST["name"];
$website = $_POST["website"];
$message = $_POST["message"];
print("Your Comment has been added! ");
$out = fopen("shout.php", "a");
if (!$out) {
print("For some reason your comment couldn't be added..");
exit;
}
fputs ($out,implode,("\n"));
fwrite($out,"<b>$user</b><br />$website<br />$message<br /><br />");
fclose($out);
?>
thx in advance my comment system *help*
Started by mgnus, May 26 2005 11:02 PM
3 replies to this topic
#1
Posted 26 May 2005 - 11:02 PM
I made a basic comment system combining and customizing a few php tutorials. One thing I want to change is when you post a comment it takes you to a completely different page. I want the page to stay the same and some blue or red text (ill take care of the color i just need the basic function) to appear at the bottom of the form with the confirmation message or error message can someone edit this and tell me what to do?
also link to my comment system http://ample-hosting.com/tutorials at the bottom
#2
Posted 27 May 2005 - 04:53 AM
nice. but when it redirects you to the page with "your comment has been added" why dont you redirect it back to the index or original page or something instead?
not to sure how to go about doing what your asking though sorry
not to sure how to go about doing what your asking though sorry
#3
Posted 27 May 2005 - 03:22 PM
when you comment if you want the page to post to the page you are currently on you can do...
but then you'd also of course need to include all the stuff on the page it was posting to on the comment page now.
<form action="<?php echo "$php_self"; ?>" method="post">
but then you'd also of course need to include all the stuff on the page it was posting to on the comment page now.
#4
Posted 28 May 2005 - 09:24 AM
no i want it to post to the shout.php its ok i basically have it figured out
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
