I'm building a registration page. I need to run validation checks on all of the input before saving it to the ms sql database. I'd like to seperate the functionality from the display, like this:
Data Entry Screen.php // front end, where user inputs data
Data Validation Screen.php // back end, validates data
entered by user. If valid,
redirect to script that
inserts user data, else
Redirects back to input screen
Marks invalid fields
and Fills fields with entered data
For the redirect, I am currently using this:
header("Location: ../register.php");
exit;
I know how to do this with GET or with SESSION variables, but I would like to know if it's possible to do this another way. (eg, POST, etc.) I haven't had any luck finding another way, if there is one.
Thank you for your time
Data Entry Screen.php // front end, where user inputs data
Data Validation Screen.php // back end, validates data
entered by user. If valid,
redirect to script that
inserts user data, else
Redirects back to input screen
Marks invalid fields
and Fills fields with entered data
For the redirect, I am currently using this:
header("Location: ../register.php");
exit;
I know how to do this with GET or with SESSION variables, but I would like to know if it's possible to do this another way. (eg, POST, etc.) I haven't had any luck finding another way, if there is one.
Thank you for your time