Joomla! 1.7.0
ChronoForms 4.0 RC2.0
I'm building a signup process which will require the user to complete a different form depending on which option they sign up for. There are five options, and each one requires a different set of information to be submitted.
I have one extremely simple form (Step 1) consisting of five radio buttons; if a user selects Button 1, I need them to be redirected to the appropriate form (Form 1), Form 2 for Button 2, and so on. So far, I have tried to make this work by inserting some custom code (which I think I found on this forum, written by Bob) into the On Submit Event. Here's what I have currently:
Obviously, all this is supposed to do right now is echo back which plan was selected, but it just says "Silver" regardless of which button I choose. I have some experience with PHP, mostly hacking on others' components, but am not skilled enough to write my own functions. I'm very well-versed in Joomla! and basic markup. Any help or pointers would be greatly appreciated!
ChronoForms 4.0 RC2.0
I'm building a signup process which will require the user to complete a different form depending on which option they sign up for. There are five options, and each one requires a different set of information to be submitted.
I have one extremely simple form (Step 1) consisting of five radio buttons; if a user selects Button 1, I need them to be redirected to the appropriate form (Form 1), Form 2 for Button 2, and so on. So far, I have tried to make this work by inserting some custom code (which I think I found on this forum, written by Bob) into the On Submit Event. Here's what I have currently:
<?php
if (isset($_POST['chooseplan_input_radio_0'])=="Silver") {
echo ('Silver');
} elseif (isset($_POST['chooseplan_input_radio_0'])=="Mobile") {
echo ('Mobile');
} elseif (isset($_POST['chooseplan_input_radio_0'])=="Gold") {
echo ('Gold');
} elseif (isset($_POST['chooseplan_input_radio_0'])=="Platinum") {
echo ('Platinum');
} elseif (isset($_POST['chooseplan_input_radio_0'])=="Create A Custom Plan") {
echo ('Custom');
}
?>
Obviously, all this is supposed to do right now is echo back which plan was selected, but it just says "Silver" regardless of which button I choose. I have some experience with PHP, mostly hacking on others' components, but am not skilled enough to write my own functions. I'm very well-versed in Joomla! and basic markup. Any help or pointers would be greatly appreciated!