When I have fields under a form tag, I use isset() function such as below:
if(isset($_POST) and isset($_POST['title']) and $_POST['date'])
{
//something;
}
and it gets bigger when I validate more fields. I am looking for any easy way of validate whether they are all filled or not in server-side with PHP.
Maybe something which navigates all the fields and check whether they are filled as required.
1 Answer