Validating form input data
- From: "stathis gotsis" <stathisgotsis@xxxxxxxxxxx>
- Date: Sun, 30 Apr 2006 15:38:43 +0300
Hello everyone,
I am tying to come up with an elegant way to process some input data that
come from a form. When the user hits the 'Submit' button, i want the form to
appear again with the already entered valid data filled in and prompt the
user to re-enter the non-valid data. If all data is valid, i will forward to
an other .php page which enters the data into a database.
I tried to do this in the following way: the form always hits back on
itself, but when all data is valid i use the PHP:header() to redirect to the
data.php that performs the database insertion. The problem is that the data
is not available to data.php in the $_POST variable. How can i overcome this
problem? Any other subtle way to handle the whole thing? Any help
appreciated.
.
- Follow-Ups:
- Re: Validating form input data
- From: Jerry Stuckle
- Re: Validating form input data
- From: Manuel Lemos
- Re: Validating form input data
- From: David Haynes
- Re: Validating form input data
- Prev by Date: Re: hitting the limits
- Next by Date: Re: Validating form input data
- Previous by thread: MYSQL table backups
- Next by thread: Re: Validating form input data
- Index(es):