Page 1 of 1

verifing form entry

Posted: Wed Feb 19, 2003 9:53 am
by node
i need to verify that 12 fields are filled in on a form. i know i could use a bunch of ` if ` statements, but i really dont wanna have to resort to that uglyness. the way ive been thinking about doing it is putting them all into an array and using a ` for each ` statement to determine the value in the fields. my problem is that im just starting out in PHP and i really dont understand its syntax that well or all of its functions/methods. so help would be greatly appreciated. oh...my server is running php4. thanks.

- node

Posted: Fri Feb 21, 2003 3:13 am
by twigletmac
If you are just checking that they are filled in then the empty() function will probably be most useful.

Mac