PHP Variables from External Script?

Toby L

New member
Hi, I tried to create a registration form without MySQL (stored in txt files).

Here's the idea:

Registration Form => Check the Form (using separate script) => Return to Original Registration Form with Errors Highlighted

During the "Check the Form" process, several variables are defined.
ex.
if (empty($_POST['username'])) {
$problem = TRUE;
$nousername = TRUE;
}


When we return to the registration form, I want the variables to retain their definition from the previous process.
ex.
if ($nousername == TRUE) {
echo"No Username Entered";
}

I can't get this to work, and have no idea how to accomplish this. I keep getting "Undefined Index" notices on the last step.
 
Back
Top