I have a form on page1.php.
The form action is "page1.php".
After some sanitation and validation takes place and there are no errors, when a user clicks the submit button, I need the page be redirected and a variable passed to the destination page.
The redirection is done with this code:
if (!$errors) {
header(
"location: offerform_switch.php");
}
The variable ($invtype) doesn't get passed.
How do I get it passed?
Or perhaps using HEADER to get to the other page is not a good idea in the first place?
What then would be a good idea?
Thank you!