rsenal Posted January 14, 2007 Share Posted January 14, 2007 i am recieving emails from my contact form however code is appearing and not the details of the person sending them.i have three input boxes in flash name,email,comments.this is the code:<?ini_set("sendmail_from", "[email protected]");Error_Reporting(E_ALL & ~E_NOTICE);$subject="from ".$_REQUEST['Your_Name:'] ;$headers= "From: ".$_REQUEST['Your_Email:'] ."\n"; $headers.='Content-type: text/html; charset=iso-8859-1'; $message=''; while ($field = current($_REQUEST)) { if ((key($_REQUEST)!="Your_Name:") && (key($_REQUEST)!="Your_Email:") && (key($_REQUEST)!="Message:") && (key($_REQUEST)!="i")) { $message.="<strong>".key($_REQUEST)."</strong> ".$field."<br>"; } next($_REQUEST); }$message.="<br>".$_REQUEST['Message:'];mail("[email protected]", $subject, "<html><head> <title>Contact letter</title></head><body><br> ".$message."</body></html>" , $headers);echo ("Your message was successfully sent. A consultant will be in touch shortly!");?>and this is what im recieving in my inbox<html><head> <title>Contact letter</title></head><body><br> <strong>server_option</strong> php<br><br></body></html>please help ??? Link to comment https://forums.phpfreaks.com/topic/34138-php-form/ Share on other sites More sharing options...
mattd8752 Posted January 14, 2007 Share Posted January 14, 2007 A temporary fix would be to include that data in the email until you can find the main problem. Link to comment https://forums.phpfreaks.com/topic/34138-php-form/#findComment-160573 Share on other sites More sharing options...
rsenal Posted January 14, 2007 Author Share Posted January 14, 2007 sorry dont understand what you mean ??? Link to comment https://forums.phpfreaks.com/topic/34138-php-form/#findComment-160576 Share on other sites More sharing options...
kenrbnsn Posted January 14, 2007 Share Posted January 14, 2007 Can you post the code for your form between [nobbc][code][/code][/nobbc] tags.Ken Link to comment https://forums.phpfreaks.com/topic/34138-php-form/#findComment-160591 Share on other sites More sharing options...
rsenal Posted January 14, 2007 Author Share Posted January 14, 2007 its in flash format does that make a difference i should i still have those tags Link to comment https://forums.phpfreaks.com/topic/34138-php-form/#findComment-160598 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.