You can do a loop.
PHP Code:
$return = array();
for($i=1; $i<=50; $i++){
if (is_null($_POST["no".$i]))
{
$return[] = $i;
}
}
if($return){
echo "You have not answer to Questions: ".implode(', ', $return);
echo "<FORM><INPUT TYPE='button' VALUE='Back' onClick='history.go(-1);return true;'></FORM>";
}else{
// everything all right, what next?
}