?foru
03-25-2014, 04:28 AM
I have a jquery form which displays the following above my form after the form is successfully processed.
<div class="success">Thank you. Membership form submitted!</strong> </div>
and is only displayed after MailHandler.php processes the data (just grabs all the post inputs and emails the specified user.
Once the form handler sends the email behind the scenes it shows the success message.
I need to redirect to the payment page after the form processes, and of course if I add a meta refresh url redirect in the form page it automatically redirects prior to the form being submitted.
I think the logic needs to be something like if referrer is MailHandler.php then redirect, but I'm not sure how to do this.
Thank you for any help.
<div class="success">Thank you. Membership form submitted!</strong> </div>
and is only displayed after MailHandler.php processes the data (just grabs all the post inputs and emails the specified user.
Once the form handler sends the email behind the scenes it shows the success message.
I need to redirect to the payment page after the form processes, and of course if I add a meta refresh url redirect in the form page it automatically redirects prior to the form being submitted.
I think the logic needs to be something like if referrer is MailHandler.php then redirect, but I'm not sure how to do this.
Thank you for any help.