Jump to content

php form


rsenal

Recommended Posts

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>&nbsp;&nbsp;&nbsp;".$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>&nbsp;&nbsp;&nbsp;php<br><br>
</body>
</html>


please help
???
Link to comment
https://forums.phpfreaks.com/topic/34138-php-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.