I want to use headers to redirect the client if they didn't come from the
correct page, but I have a problem with one page. If they leave a form field
empty, they are redirected back to the page they came from with an error
number and a 6 digit 1d number in the location bar which defines what field
was left empty( order.php?prob=2&id=000001)
My only problem is that when they repost, the $_SERVER['HTTP_REFERER']
contains the get variables and doesn't match, so they get redirected.
Instead of coding an if statement for every possible combination of error
numbers and ids, ...