This is my problem:
I have a page, that when you click on the "New Order" button, it goes out and inserts an empty record into the database, and then I have a query that retrieves the max of orderid. This will give me the orderid that will be used for this order.
Then they fill in their info, and submit the order. Then on the submit page, there is a link that returns them to the order page, to place another order.
But, when they return to the page, and hit "New Order", it gives them the same orderid as the last time. It doesn't insert the blank record in the database again.
If you do a force reload of the page, then it will get you a new number.
Why would this be? How do I fix this?