Well, if you have three different form inputs, one called $name, one called $email and one called $password, you can simply do this:
if (!$username || !$password || !$email) and then add the appropriate action, perhaps an error message. Just use "else" to process the form, cuz in case of else, he filled inn all the fields.
To get an email validation code, go to the PHP/MySQL article on hotwired.lycos.com/webmonkey. On the last or second last page or something, there's a code that checks for the @ and the . afterwards or something. It's a decent check.
Bye
Fabio wrote:
Hi,
I am looking for a fast and easy way to check the data tyoed in a form by users.
In other words, I would like only to know if they have filled out all the required fields and at last that they have typed text where should be text, and numbers where there should be numbers. Also an e-mail address check could be good.
The thing I am looking for, should also show the same page with the same data if an error occours, and should put a red label or a description beside the wrong typed fild.
Do you have any suggestion about !?
Thank you
Fabio