CODE
<?php
error_reporting(E_ALL);
?>
<!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=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
extract ($_POST);
/*if(!isset($submit))
{*/
?>
<form action=" " method="post" name="test">
Name: <input name="name " type="text" id="name " size="8" /><br />
email <input name="email" type="text" size="9" maxlength="30" /><br />
<input name="submit" type="submit" value="submit" />
</form>
<?php
$to = 'nemo@example.com';
$Subject = "test message";
$Msg = "is this working?";
mail($to, $Subject, $Msg, 'From' . $email);
/*}
else
{
echo " thank you for your order. It is being processed. Thank you for your business.";
}*/
?>
</body>
</html>
