I have an assignment where I cannot use mySQL for a Car Ordering System.
I am asked to get input for brand, model, color, options, then display them all in a review and complete page.
I have to create them all in an individual page. For instance (Brand: toyota) Click next, that opens (Model: camry) click next, etc.. My problem is when I have to separate them. I only retain the data from the previous page.
Can someone help. I'll provide some code.
Asking for Brand of car: (order.html)
<form action="order_model.html" method="post">
Brand:
<input type="text" name="brand" size="20" maxlength="20">
<input type="submit" value="Next >>">
</form>
Asking for model: (order_model.html)
<form action="process.php" method=post>
Model:
<input type="text" name="model" size="20" maxlength="20">
<input type="submit" value="Next >>">
</form>
PHP FILE: (process.php)
<?php
$brand = $_POST['brand'];
$model = $_POST['model'];
?>
<p>Review and Complete Your Order:</p>
//I shortened the code, these used to be in tables.
Make:
<?php echo $brand.' '; ?> //Does not display
Model:
<?php echo $model.' '; ?> //Displays
<p><input type="submit" value=" Complete Order "></p>
When It displays process.php, it only shows model. I need it to show brand and model, I can do the color and the rest after I figure out how to do one.