I'm just getting started with PHP. I've setup Apache, MySQL, and PHP on a Win2k machine. Everything seems to work great except I cannot get a simple form to work. Here's my code for the form:
<form action="process.php" method="post">
<p>Engine:
<input type="text" name="engine">
<br>
<br>
Transmission:
<input type="text" name="transmission">
</p>
<p>Exterior Color:
<input type="text" name="exterior_color">
<br>
<br>
Interior Color:
<input type="text" name="interior_color">
<br>
<br>
Miles:
<input type="text" name="miles">
</p>
<p>Stock Number:
<input type="text" name="stock_number">
</p>
<p>
</p>
<input type="submit" namevalue="Submit">
</form>
And the code for process.php page:
<?php
echo $engine;
echo $transmission;
echo $exterior_color;
echo $interior_color;
echo $miles;
echo $stock_number;
?>
And finally, the errors that I get when I submit the form:
Notice: Undefined variable: engine in d:\apache group\apache\htdocs\process.php on line 11
Notice: Undefined variable: transmission in d:\apache group\apache\htdocs\process.php on line 12
Notice: Undefined variable: exterior_color in d:\apache group\apache\htdocs\process.php on line 13
Notice: Undefined variable: interior_color in d:\apache group\apache\htdocs\process.php on line 14
Notice: Undefined variable: miles in d:\apache group\apache\htdocs\process.php on line 15
Notice: Undefined variable: stock_number in d:\apache group\apache\htdocs\process.php on line 16
Any ideas why this isnt working? PHP works fine because I can declare and display variables.. but can't seem to pass them from a form. Thanks so much.