Jump to content

validate 200 input fields


dsp77

Recommended Posts

Hello, i need to validate 200 input fields if they are not empty, i have the following code where i'm stuck and i'm missing something :( any help is appreciated

if($_SERVER['REQUEST_METHOD'] == 'POST') {
//print_r($_POST);	
foreach ($_POST as $value) {
	if (empty($value)){
		echo 'empty';
	} else {
		echo 'notempty';
	}
}
}

Link to comment
https://forums.phpfreaks.com/topic/233348-validate-200-input-fields/
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.