Expand|Select|Wrap|Line Numbers
- <?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_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\feedbackfrm.php on line 19