Re: Online tutorials for form validation in PHP
| From: | John Fulton | Date: | Wed, 06 Feb 2002 16:58:38 +0000 |
| Subject: | Re: Online tutorials for form validation in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83723@lists.php.net to get a copy of this message | ||
Laurie,
You should use the funtions isset() and empty() along with the
appropriate conditionals. I have a tutorial which demonstrates
a way to do this:
http://www.rci.rutgers.edu/~jfulton/php1/forms.html
John
--
John Fulton, Webmaster, Rutgers University Computing Services.
On Wed, 6 Feb 2002, lmlweb@mybc.com wrote:
> Greetings,
>
> I'm a beginner in PHP, so forgive me if I ask really basic questions!
>
> I've created a form that inserts data into a database, and so far, the
> form works. However, I don't have form validation included into this
> form, so I was wondering if someone can point me to an online tutorial
> on how to do this with an existing form.
>
> I've tried adding a javascript onclick form validation but the php code
> I programmed doesnt' take the javascript onclick into consideration.
>
>
> The php I coded takes the first three required field into consideration
> and if it doesn't have the values, it goes right back to the original
> form - but it doesnt' tell you what you did wrong - not very user friendly.
>
> --
> Laurie Landry
> lmlweb@mybc.com - email
> (604) 693-1120 - voicemail/fax
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>