I have a register.php page. I sent the data through a form to a php_register.php file. this file check that the form is valid (the email is real and such things). I want that the php_register.php will do his job and send to client back the register.php file in case of invalid form:
header("Location: register.php");
I want that php_register.php will send additional data to a register.php. in my case, I want to send what went wrong on the input. I can do it like this:
header("Location: register.php?error=5");
Through register.php $_GET['error']
I can display the right output. What I want to do is the same thing, but instead get method, use post methods (without any forms involve) ?
How can I do it?