Conditional form with payment
I am looking at making a form which will be submitted in to a SQL database, this part is simple.
It will have a checkbox, which if ticked, will reveal another few fields for the user to complete (and be required), though if unticked, the fields will remain hidden (and blank) if this can be done? (Can someone confirm?)
Finally, if the checkbox is unticked, then for the contents of the form can just be stored to the database, but if it is ticked and the additional fields are completed, I not only want the contents of the form to be stored in the database but I also want the user directed to a payment page.
I know there will be a redirect set on submit but this has to be different depending on if the checkbox is ticked or not.
Any help appreciated, thanks.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)