|
I'm thinking about having a contact form on my "contact_form_page.php" that submits the form data to another page: the "form_processing.php" page. But if the form validation on "form_processing.php" comes up with errors, I want it to seem to the user that they have never really left the "contact_form_page.php" and that error messages show up on that page, e.g. "Please enter a valid e-mail address", "please enter an organization name" and then they can continue to fill out the contact form as if they have never left the "contact_form_page.php". Then, finally, when they have successfully sent the form, I would like to erase the form from the page and replace it with a detailed confirmation message, like: "Thank you name, your message, message, message, message has been successfully sent." Will this strategy work with two pages involved or should I do all the scripting on one page?
Many thanks,
matt
|