I'm operating a travel website (train & flight tickets). I need someone to help with the script for a contact/purchase form.
In the contact form, the customer must enter the date of travel. What I want to change is the following:
if the date of travel is > 2 weeks away from submission date, then the customer should be redirected to paypal for instant ticket purchase.
if the date of travel is < 2 weeks away from submission date, an email should be sent instead (as in a standard contact form).
Please note that the contact form is already existing, I just need help to make the above changes. Thanks.