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, [EMAIL PROTECTED] 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
> [EMAIL PROTECTED] - email
> (604) 693-1120 - voicemail/fax
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to