Code:
<?php $yourname = $_REQUEST['yourname']; $youremail = $_REQUEST['email']; $yourorg = $_REQUEST['yourorg']; $yourcomment = $_REQUEST['yourcomment']; $submit = $_REQUEST['submit']; if(isset($submit)) { if($yourname ==""){ $error = "Please fill in your name.."; } elseif($youremail =""){ $error = "Invalid email address"; } elseif($yourcomment == ""){ $error = "Please fill in your comment"; } } else { mail("binodranarai@yahoo.com","$yourname<$youremail>",$yourcomment); print "<link href='feedback.php'>"; } ?>
Warning: mail() [function.mail]: "sendmail_f rom" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs \feedbackfrm.ph p on line 19
Comment