Posted by Chris Lott on 01/09/06 22:31
I want to do something like this to check if a variety of submitted form fields (crn, instructor, etc) have any value in them: $reqfields = array('crn', 'instructor'); $errorflag = 0; foreach ($reqfields as $field) { if ($_REQUEST[$field] == '') { $errorflag = 1; } } But I can't quite get the syntax right... help?? c
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming