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
verifing form entry
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
If you are just checking that they are filled in then the empty() function will probably be most useful.
Mac
Mac