PHP order form e-mail and redirect???
I have this form that will collect data and e-mail it to a merchant. We have four payment methods they can choose: PayPal, Check, Wire Transfer, and Money Order. Right now, it sends an email that tells which one of these methods a user clicked on. Then it displays the message at the bottom that says Thank You for your order. Is there a way for the form to still send this information to the merchant's e-mail, but if they choose the PayPal option, it would redirect them to our PayPal page instead of displaying the image at the bottom? I'm new to PHP and any help would be appreciated. I provided the code below.
I imagine the logic goes something like:
If PayPal (send e-mail, redirect:http://www.paypal.com/ourpage.html)
If else (send e-mail)
but im not great with the syntax yet.
Right after the line where you send the mail you can have an if then statement.