When i hit the submit button on my website it says there is something wrong with my php code on line 3? I'm not a php person and have no idea what it means. Please check out my code below and let me know what I'm doing wrong. Any help would be greatly appreciated!THANKS SO MUCH!
<div><?php <br />
<br />
$your_name = $_GET['your_name']; <br />
$your_email = $_GET['email']; <br />
$your_message = $_GET['message']; <br />
<br />
$recipient_email - "pouna12@yahoo.com";<br />
<br />
<br />
$headers .= 'Content-type: text/html; charset=iso-8859-1'; <br />
<br />
$content = "<html><head><title>Contact letter</title></head><body><br>"; <br />
$content .= "Company: <b>" . $your_company . "</b><br>"; <br />
$content .= "Name: <b>" . $your_name . "</b><br>"; <br />
$content .= "Phone: <b>" . $your_phone . "</b><br>"; <br />
$content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>"; <br />
$content .= $your_message; <br />
$content .= "<br></body></html>"; <br />
<br />
mail($recipient,$subject,$content,$headers); <br />
?> <br />
<html> <br />
<body bgcolor="#282E2C"> <br />
<div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold"> <br />
Your message was sent. Thank you. <br />
</div> <br />
</body> <br />
</html> <br />
<script>resizeTo(300, 300)</script></div>
<br />
<?php
while ($request = current($_REQUEST)) {
if (key($_REQUEST)!='pouna12@yahoo.com') {
$pre_array=split ("&777&", $request);
$post_vars[key($_REQUEST)][0]=preg_replace ("/<[^>]*>/", "", $pre_array[0]);
$post_vars[key($_REQUEST)][1]=preg_replace ("/<[^>]*>/", "", $pre_array[1]);
}
next($_REQUEST);
}
reset($post_vars);
$subject="From ".$post_vars['your_name'][0] ;
$headers= "From: ".$post_vars['your_email'][0] ."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
$message='';
while ($mess = current($post_vars)) {
if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {
$message.="<strong>".$mess[1]."</strong> ".$mess[0]."<br>";
}
next($post_vars);
}
mail($_REQUEST['pouna12@yahoo.com'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$message."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
?>
<script>
resizeTo(300, 300);
</script>
<div><?php <br />
<br />
$your_name = $_GET['your_name']; <br />
$your_email = $_GET['email']; <br />
$your_message = $_GET['message']; <br />
<br />
$recipient_email - "pouna12@yahoo.com";<br />
<br />
<br />
$headers .= 'Content-type: text/html; charset=iso-8859-1'; <br />
<br />
$content = "<html><head><title>Contact letter</title></head><body><br>"; <br />
$content .= "Company: <b>" . $your_company . "</b><br>"; <br />
$content .= "Name: <b>" . $your_name . "</b><br>"; <br />
$content .= "Phone: <b>" . $your_phone . "</b><br>"; <br />
$content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>"; <br />
$content .= $your_message; <br />
$content .= "<br></body></html>"; <br />
<br />
mail($recipient,$subject,$content,$headers); <br />
?> <br />
<html> <br />
<body bgcolor="#282E2C"> <br />
<div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold"> <br />
Your message was sent. Thank you. <br />
</div> <br />
</body> <br />
</html> <br />
<script>resizeTo(300, 300)</script></div>
<br />
<?php
while ($request = current($_REQUEST)) {
if (key($_REQUEST)!='pouna12@yahoo.com') {
$pre_array=split ("&777&", $request);
$post_vars[key($_REQUEST)][0]=preg_replace ("/<[^>]*>/", "", $pre_array[0]);
$post_vars[key($_REQUEST)][1]=preg_replace ("/<[^>]*>/", "", $pre_array[1]);
}
next($_REQUEST);
}
reset($post_vars);
$subject="From ".$post_vars['your_name'][0] ;
$headers= "From: ".$post_vars['your_email'][0] ."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
$message='';
while ($mess = current($post_vars)) {
if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {
$message.="<strong>".$mess[1]."</strong> ".$mess[0]."<br>";
}
next($post_vars);
}
mail($_REQUEST['pouna12@yahoo.com'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$message."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
?>
<script>
resizeTo(300, 300);
</script>