I have a page that I want some variables to stay the same and others to reset on an add button push. I think I can do it with the isset command but I am not sure how. Here is how my page is working:
//Get the order number - auto incremented so only used as a reference
$result = mysql_query("SELECT COUNT(onum) as number FROM orders", $con);
$ordernumquery = mysql_fetch_row($result);
$ordernumquery = $ordernumquery; // mysql_fetch_row returns an array. we only want the Name so we just set it excluseively.
I want to keep the $ordernumquery the same so when they add an item I can reuse it to query the database for the items already added.
The other variables I would also like the keep the same are the customer, Check out date and return date. When they are completed I want to put a submit button at the bottom that will add the last record and go back to the menu.
Here is what my page looks like. I have hard coded my ordernumquery so you can see the item results.