I have a PHP form handler page with this line of code:
$required_errorpage = "../thank_you_error.html";
Is there any way to turn it into an if then else redirect based on where the submit page came from? In other words, there are two forms and they both go to this page which does all the form handling.
For the error, I would like the page go to 2 different error pages based on which form was submitted.
the other error page would be "../offer_error.html"
I am using "dynaform" so I don't know if any custom code will work with it. I know very little about PHP so this solution works great other than this issue here. here is the URL for the dynaform site if that helps: