To be more specific
PHP Code:
<? include("accesscontrol.php");
$pday = date('d', mktime(0,0,0,0, date(d)));
$pmonth = date('m', mktime(0,0,0, date(m), date(d)));
$pyear = date('Y', mktime(0,0,0,date(m) ,date(d) , date(Y)));
if(isset($s1)){
$odoban = $_POST['odoban'];
$to = 'myemail@gmail.com'
// subject
$subject = 'Supply Requisition';
// message
$message = '<html><body><p><b><i><table align="center" border="0" cellspacing="0" cellpadding="0"><tr><td><table style="table-layout:fixed;border:2px outset #000099" width=535 height=550 border=2 cellspacing=4 cellpadding=0><col width="167"><col width="167"><col width="167"><tr><td style="border:1px inset #CCCCCC" width="165" height="21" align="left" valign="top" bgcolor="#CCCCCC"><span class="text"><b><span style="font-size:12px;line-height:19px;"><input name="odoban" value="'. $odoban .'" type="text" id="odoban" size="1"> Odoban Disinfectant</b></a></span></td><td style="border:1px inset #CCCCCC" width="165" height="21" align="left" valign="top" bgcolor="#CCCCCC"><span class="text"> <b><span style="font-size:12px;line-height:19px;"><input name="nav_lt" value="'. $nav_lt . '" type="text" id="odoban" size="1"> Navigation Light Bulbs<br soft></span></u></b></a></span></td><td style="border:1px inset #CCCCCC" width="165" height="21" align="left" valign="top" bgcolor="#CCCCCC"><span class="text"> <b><span style="font-size:12px;line-height:19px;"><input name="brake" value="'. $brake . '" type="text" id="brake" size="1"> Brake-Kleen Parts Cleaner<br soft></span></u></b></a></span></td></table></form></body></html>';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: Me <me@mydomain.com>' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
}
?>
You dont need the <?php because that's going to be parsed before it's sent. You also needed to close the body and html which i added in and close the if isset which i did not sure if this was a snippet or your whole code.
Bookmarks