well, one thing you can do is have the form submit to an arbitrary php document, and based on the inputs and all the forms are complete, you can set the header to the required page.
For the message system I have setup, teh action is action=r.php?tankien=6, and theres a switch in there for $_REQUEST['tankien'] and if the form is filled out correctly, it sets $_SESSION['header'] to message.php, otherwise it goes back to message.php?opt=4, and in r.php, it also has a $responseMsg that lets you know what happened.
Heres the code, kinda.
PHP Code:
echo ' <head> <meta http-equiv="refresh" content="3; url=' . $_SESSION['header'] . '"/> </head>';
and below that it has
PHP Code:
echo ' <body> <table height="50%" align="center"> <tr> <td valign="bottom">'; echo $responseMsg; echo '<br /><br /> Please wait while we transfer you.... <br /><br />'; echo '<a href="' . $_SESSION['header'] . '">(Or click here if you wish not to wait)</a>'; unset($_SESSION['header']);
I feel like I'm making it sound confusing...but hopefully you understand what I did, let me know if you need further clarification.
|