|
Posted by Michael Fesser on 09/14/07 16:39
..oO(pepper.gabriela@gmail.com)
>page_A.php is a page with a form.
>The user inserts text in four fields, then he clicks a submit button.
>The data goes to page_B.php:
>this page controls the data submitted, then echoes a message.
>If there were problems with the submitted data the message says:
>"a problem occurred with your data. Click here to come back to the
>form" (page_A.php).
>When the user comes back, he finds the fields white.
You don't need two pages. Let page_A show and handle the form
processing. Submit the form to the same page, check the values and show
the form again if there's an error.
To keep the form data while moving from one page to another you would
have to store the values in a session.
Micha
Navigation:
[Reply to this message]
|