I am new with php. I really need help, guys.
I install PHP 4.3.3 on Xitami web server
This is the HTML form
<form method="POST" action="processorder.php" >
<table><tr>
<td><input type="text" name="tire" size=3></td>
<td><input type="text" name="oilq" size="3"></td>
<td><input type="text" name="sparksq" size="3"></td>
</tr></table>
<input type="submit" value="submit Order">
</form>
and this is the PHP file
<?php
echo '<p>Order Processed at ';
echo date('H:i, F j');
echo '</P>';
$oil = $_POST['oilq']; <----PROBLEM. This is line 18
echo $oil;
?>
and this is my error when i run the page
Notice: Undefined index: oilq in C:\XITAMI\webpages\test\processorder.php on line 18
I try using $HTTP_POST_VARS[''] and $_POST[''] and still doesn't work. Also, i check the php by running the phpinfo(); and everything works fine but when i run my form is were php give an error. HELP!......Thank you for your time.