captainjustin
01-13-2010, 11:56 PM
I created a page to for ordering supplies and everything seems displays properly when you hit send button the mail is sent just fine, But it doesn't display the php for some reason..... Where I'm trying to echo the quantity in the email it just shows the php code. I don't expect anyone to fix the whole page but, if anyone could get me started in the right direction it would be a huge help.....
Thanks in advance
<? 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'];
mail('myemail@gmail.com', 'Supply Requisition',
'<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;">
////////////////I think this is where I'm messing up?//////////////////////////
<input name="odoban" value="<?php echo $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>
Thanks in advance
<? 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'];
mail('myemail@gmail.com', 'Supply Requisition',
'<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;">
////////////////I think this is where I'm messing up?//////////////////////////
<input name="odoban" value="<?php echo $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>