Hi everyone, first of all, I'd like to wish everyone a very merry festive season and a happy new year for 2010 .... ;-)
I am working on a registration that is going fine at the moment,
when all fields are populated and the submit is pressed, the script checks for duplicated usernames, email addresses and mobile \ cell numbers and returns an error message notifying the user.
What I would like to learn is how to retain all the information already entered into the registration page.
ie. if a user completes 99% of the registration script, but forgets to upload \ select and profile image, The script rightly provides an error notifying the user that he \ she has not selected \ uploaded an image.
But the script also removes all data from the form.
Its annoying me and im only testing it, I'm sure it would annoy a user who wants to register.
How can I retain the form data
//Array to store validation errors
$errmsg_arr = array();
//Validation error flag
$errflag = false;
this is how i am sending the error message
if($gender == 'Select') {
$errmsg_arr[] = 'Please select male or female gender';
$errflag = true;
}
The error is then shown on the reg form.php
I would like to retain all other information entered into the form.
Hoping someone can help with this