Hello,
I am new to PHP code and I have copied the following code from the internet to create a contact page on my web site.
Can any one help please?
I am new to PHP code and I have copied the following code from the internet to create a contact page on my web site.
Code:
<?
$subject="from ".$_GET['your_name'];
$headers= "From: ".$_GET['your_email']."\n";
$headers='Content-type: text/html; charset=iso-8859-1';
mail("<emailremoved>", $subject,"
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$_GET['message']."
</body>
</html>" , $headers);
echo ("Your message was successfully sent";
?>
<script>
resizeTo(300, 300)
//window.close()
</script>
However when the script is run I get the following error
".$_GET['message']." " , $headers); echo ("Your message was successfully sent!"); ?>
Comment