verifing form entry

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
node
Forum Newbie
Posts: 7
Joined: Wed Feb 19, 2003 9:53 am
Location: TX

verifing form entry

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

If you are just checking that they are filled in then the empty() function will probably be most useful.

Mac
Post Reply