I followed this tutorial that I fond on pixel2life: http://www.phpeasyst...opview.php?id=8
my contact page that doesn't send anything
my code:
contact.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <div align="left"> <table width="400" border="0" cellpadding="3" cellspacing="1"> <tr> <td><div align="left"><strong>Contact Studio Stortz </strong></div></td> </tr> </table> <table width="400" border="0"cellpadding="0" cellspacing="1"> <tr> <td><form name="form1" method="post" action="send_contact.php"> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr> <td width="16%">Subject</td> <td width="2%">:</td> <td width="82%"><input name="subject" type="text" id="subject" size="50"></td> </tr> <tr> <td>Message</td> <td>:</td> <td><textarea name="detail" cols="50" rows="8" id="detail"></textarea></td> </tr> <tr> <td>Name</td> <td>:</td> <td><input name="name" type="text" id="name" size="50"></td> </tr> <tr> <td>Email</td> <td>:</td> <td><input name="customer_mail" type="text" id="customer_mail" size="50"></td> </tr> <tr> <td> </td> <td> </td> <td><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td> </tr> </table> </form> </td> </tr> </table> </div> </body> </html>
send_contact.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body><?php
$subject ="$subject";
$message="$message";
$mail_from="$customer_mail";
$header="from: $name <$mail_from>";
$to ='aukanoob@gmail.com';
$send_contact=mail($to,$subject,$message,$header);
if($send_contact){
echo "Your message was sucessful submited";
}
else {
echo "Error, something is wrong at your form.";
}
?>
</body>
</html>
thankyou for your time
