Dec 17th, 2011, 12:45 PM
Hi sogreen,
Good question...
For this, you'd really need to doctor the PHP a bit. After the form has been submitted, run some arbitrary code to figure out where it should go next. This code could be placed at the top of the page you're linking to right now. It would check the value of the payment field (e.g. a field with the name attribute of "payment"), then redirect elsewhere if it's set to zero. For example:
But precisely how it should be coded & where it should go, depends on your setup and existing code. Still, hope this gives you a few ideas!
- Ben
Good question...
For this, you'd really need to doctor the PHP a bit. After the form has been submitted, run some arbitrary code to figure out where it should go next. This code could be placed at the top of the page you're linking to right now. It would check the value of the payment field (e.g. a field with the name attribute of "payment"), then redirect elsewhere if it's set to zero. For example:
PHP Code:
if ($_POST["payment"] == 0) {
header("location: yourotherpage.php";
exit;
}
But precisely how it should be coded & where it should go, depends on your setup and existing code. Still, hope this gives you a few ideas!
- Ben