|
Answer» I am designing a few Websites for some NGOs and others. I require help in creating a comments form which should POST the comments typed out and submitted by a Visitor to a Website, on the Page where the Comments Form has been placed. I have seen many Websites where such Forms are in action, but do not know the PHP script for this action.
Kindly help.Try looking for the script on Dynamic Drive:
http://www.dynamicdrive.com/dynamicindex16/index.html
See if they have what you're looking for. Good luck. ASlaterWhile thanking ASlater for the guidance provided, I have not been able to locate the requisite script on the said URL. However, I shall keep looking and HOPE to find it soon. Thanks a lot for the time taken to post the reply to my original query.You would need a MySQL connection and database to store the comments. Do you have a MySQL connection?Sorry that Dynamic Drive didn't have it. How's this one?
http://www.wsabstract.com/howto/forum.shtml
It has PHP and stuff, lots to read but maybe you'll find what you need, no guarantees, though. Good luck.
ASlaterA website like Dynamic Drive wouldnt have a script like that.
You would have to compose it yourself, because you need good PHP skills, and a database. I have not seen scripts that have are "COMMENT orientated" on a website like Dynamic Drive.Hi Zahid here from Pakistan
1st you make HTML file
$ipi = getenv("REMOTE_ADDR"); $httprefi = getenv ("HTTP_REFERER"); $httpagenti = getenv ("HTTP_USER_AGENT"); ?> Your Name:
Your Email:
Attention:
SALES Designer Managment Others
Message:
2nd you Make PHP file
$ip = $_POST['ip']; $httpref = $_POST['httpref']; $httpagent = $_POST['httpagent']; $visitor = $_POST['visitor']; $visitormail = $_POST['visitormail']; $notes = $_POST['notes']; $attn = $_POST['attn'];
if (eregi('http:', $notes)) { die ("Do NOT try that! ! "); } if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) { echo "Use Back - ENTER valid e-mail\n"; $badinput = "Feedback was NOT submitted\n"; echo $badinput; die ("Go back! ! "); }
if(empty($visitor) || empty($visitormail) || empty($notes )) { echo "Use Back - fill in all fields\n"; die ("Use back! ! "); }
$todayis = date("l, F j, Y, g:i a") ;
$attn = $attn ; $subject = $attn;
$notes = stripcslashes($notes);
$message = " $todayis [EST] \n Attention: $attn \n Message: $notes \n From: $visitor ($visitormail)\n ";
$from = "From: $visitormail\r\n";
mail("[emailprotected] ", $subject, $message, $from);
?>
Date:
Thank You : ( )
Attention: Message:
", $notes); echo $notesout; ?>
Your Test is Submited
Back to Feedback Form
Back to home Page: www.keyadv.com Quote from: zahid on November 28, 2008, 02:05:01 PM1st you make HTML file
--Code--
That should be a PHP file.
|