Jump to content

isset issues


trippin13

Recommended Posts

Depends on what kinds of fields they are, but if they're simple fields like text inputs, I would name the fields like "input1", "input2", "input3" and so. The, us for() to loop through every field and validate it.

[code]
for($i=1; $i <= 200; $i++) {
  //validation code here
   $field = "input".$i;
  if(! isset($_POST[$field]) ) {
     //empty!
   }
}
[/code]
Link to comment
https://forums.phpfreaks.com/topic/4571-isset-issues/#findComment-15967
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.