I have a class that builds forms and carries out a number of checks before allowing submition to a db. Up to the point of submition it all works fine but then I run into a problem. In the class is an if statement, abbriviated it is...
if ((!isset($submit)) AND (!isset($email)))
{
$post = forward;
}
This works how it is susposed to in that if all the checks are passed it no longer returns a form. The problem comes from using this to submit to a db and print out the submission for varification. In the calling page I attemped to include an if clause where by if all the checks are passed it submits and prints. Something like this...
if ($post == forward)
{
//example return it would normally return a table
print"tree";
}
else
{
//in here would be the array for form object, re-printed to page if checks fail
}
I've tried all number of variations with regard to the if clauses but can't get it to function how it should.
help..