I've got a script which checks if any variables are unset in the URL:
Code: Select all
function ProcessForm()
{
$InputFields = array( # All of the inputs we need
'dep','arr','fltno','cruise','fuel','resfuel',
'total','left','right','center','deptime','route',
'remarks'
);
for($i = 0;$i < sizeof($InputFields);$i ++)
{
if(!isset($_REQUEST[$InputFields[$i]]))
{
return false; # If any of the inputs aren't set, return false. This in turn creates the form via the Init function
}
}
Output::BuildFile();
return true; # By default return true, this line will be reached if all input fields are filled in.
}
Please Help,
Thanks,
Andrew