Note that there are some explanatory texts on larger screens.

plurals
  1. POStoring User Input and using it through multiple pages
    text
    copied!<p>I have an assignment where I cannot use mySQL for a Car Ordering System. </p> <p>I am asked to get input for brand, model, color, options, then display them all in a review and complete page. </p> <p>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. </p> <p>Can someone help. I'll provide some code.</p> <p>Asking for Brand of car: (order.html)</p> <pre><code>&lt;form action="order_model.html" method="post"&gt; Brand: &lt;input type="text" name="brand" size="20" maxlength="20"&gt; &lt;input type="submit" value="Next &gt;&gt;"&gt; &lt;/form&gt; </code></pre> <p>Asking for model: (order_model.html)</p> <pre><code>&lt;form action="process.php" method=post&gt; Model: &lt;input type="text" name="model" size="20" maxlength="20"&gt; &lt;input type="submit" value="Next &gt;&gt;"&gt; &lt;/form&gt; </code></pre> <p>PHP FILE: (process.php) </p> <pre><code>&lt;?php $brand = $_POST['brand']; $model = $_POST['model']; ?&gt; &lt;p&gt;Review and Complete Your Order:&lt;/p&gt; //I shortened the code, these used to be in tables. Make: &lt;?php echo $brand.' '; ?&gt; //Does not display Model: &lt;?php echo $model.' '; ?&gt; //Displays &lt;p&gt;&lt;input type="submit" value=" Complete Order "&gt;&lt;/p&gt; </code></pre> <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. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload