Let me break it down my situation for you.
I have about 400 lines of code verifiying this registration form with about 50 $_POST[] variables.
The way my code works is if there is a POST that fails verification it will set two variables here is an example
[code=php]
if($variable == “”)
{
$user_err .= “<span style=”color:red;”>You must enter a Zip code.</span><br />”;
$send = “no”;
}
if($variable2 == “”)
{
$user_err .= “<span style=”color:red;”>You must enter a Name </span><br />”;
$send = “no”;
}
There is an conditional that checks $send and if it equals “no” then it will print $user_err that can hold multiple errors, back to the user. If send == “” then it will send info to the designated tables and send them a verifaction e-mail.
Here is my problem…
If send == “no” then I need to modify headers and send them to a template page. this template page must recieve a POST variable holding all the errors so they can see what they need to fill out to be successfully registered. I have thought about putting all the errors in a session variable but I don’t want to write anything to the servers hard disk, and a GET would be just crazy and probably immpossible if the URL string is too long.
So all in all How Do I…
SET a POST Variable and then POST it to the page while in a script? (no form).
I know what your thinking but I really want to keep this script free of includes and html. Thanks for your help