• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: redirect by submit based on selection radio

redirect by submit based on selection radio 12 years 4 months ago #20609

I need a smal code, how do I insert a php code, to choose where I redirect the user when submit, based on what he select in the form;

3 options by radio button, one have a uniqe url to redirect to.
the 2 other another url


how do I do that, and how is the php script?


:blink:
The administrator has disabled public write access.

redirect by submit based on selection radio 12 years 4 months ago #20615

  • octavian
  • octavian's Avatar
  • NOW ONLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
You don't need any script to do this. Just specify the values in your radio group like this:
http://www.first-redirect.com|First redirect selection
http://www.second-redirect.com|Second redirect selection
http://www.third-redirect.com|Third redirect selection

In Properties > Form Info set "Return URL" to {your_radio_group_name:value} (of course, rename "your_radio_group_name" to the actual name of your radio group). Please also make sure you have "Show Thank You Message" set to "No". Now, upon submission, the user will get redirected based on the option he chooses from the radio group.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
The following user(s) said Thank You: thomas.johannessen
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!