Ok to validate one of my forms I do the following
I want to know which variable did not have the value so I can tell that to the person, how can I do that without doing an if statement for each variableCode:if($var && $othervar && $anothervar){ echo "form completed"; } else{ echo "form not completed"; }
e.g.
if(!$var){
echo "you missed the ".$var." field";
}
Is there a faster way than that?





Bookmarks