I am using the formmail script from from
<[login to view URL]>?
Currently the form redirects to a good submission or bad submission page. I want to change it to redirect to a different page depending on what users select in the radio buttons.
For example,
I have a 2 option radio button on my form page, if the user? selects Yes, it goes to [login to view URL] and if they select No it continues to check the results of the next 3 radio buttion option.
Here I have 3 radio button options, if they select the first two they should go to [login to view URL] if they select the? third they should go to page2.htm.
The email script is working, I only need to change where it redirects to on a successful submission.
I thought a simple solution would be to add a destination tag to each form item. Then In that tag I could put the destination page or leave it blank.
If that element(radio button)? is selected then the php uses the specified page in the tag as the destination after the submit button is clicked, if nothing is specified(the tag is blank)? it looks for the next selected element page and whatever page is found first in a selected item, it goes to that page on successful submission. If there is an error with the page the the error is shown as it is now.
thanks