I have many input fields and I need to ascertain the first empty input field. at the moment I'm checking each one individually and if its not empty move on to the next one. But I was wondering if anyone knew of a more efficient way of doing this:
if(empty($a)){$a=$name;}else
if(empty($b)){$b=$name;}else
if(empty($c)){$c=$name;}else
............if(empty($z)){$z=$name;}else
{$message="all boxes are filled"};