Is there a simpler function to something like this:
if (isset($_POST[\'Submit\'])) {
if ($_POST[\'login\'] == \"\" || $_POST[\'password\'] == \"\" || $_P
empty and isset should do it.
if(!isset($_POST['submit'])) exit();
$vars = array('login', 'password','confirm', 'name', 'email', 'phone');
$verified = TRUE;
foreach($vars as $v) {
if(!isset($_POST[$v]) || empty($_POST[$v])) {
$verified = FALSE;
}
}
if(!$verified) {
//error here...
exit();
}
//process here...