Hello, Does anyone know how to send a form to email and redirect to my payment center with just one button? I have a good form to email script. But I want it to do more. Right now the user completes the form and clicks submit. On submit it sends the form to my email and at the same time goes to a php page, where they have to click another button which redirects them to my payment gateway. I would like to eliminate the second page button. The php page is the action for my form. How do I use the php action on the same page as the form, and merge it into one button that does it all? Thanks all, noelves
Try this at the end of your script that sends the email, replacing the URL of course: header("Location: http://www.urltopaymentcenter.com"); exit(); PHP:
Tried your suggestion. It does work. When you click the button, it does redirect to the payment center. So that works just as you suggested it would. Now I just need it to add the product to the cart at the same time. I may have a solution to that. I'll let you all know. noelves