I have a form, where I'm collecting registration info - like name, address, email, password. I'm calling another php file at server side code, where it will check whether the email exists or not. Pretty simple, just receiving those post variables and check with the database.
The issue, if I find a match, I want to go back to the registration.php page, using the following code:
if ($email_already_use == "y") {
$_SESSION['ERROR'] = "Error";
$_SESSION['MESSAGE'] = "This email address already used. Please try another";
header("location: ".$settings['site_url']."registration.php");
exit;
}
Now, I would like to place the user input at the registration.php file, but I do not want to use pass variable at URL like this:
header("location: ".$settings['site_url']."registration.php?".name=$name&address=$address&email=$email;
Is there anyway, I can retrieve those variables at registration.php, without specifying .name=$name&address=$address&email=$email ?
Thanks for your help. I see some sites has similar implementation, but did not find anything like how to do it.