Hi.. Please help me
First in my index page there is a form like this:
____________________________________________________
Register
Fields with * are required.
First Name *
[textbox here]
Password *
[textbox here]
Email *
[textbox here]
Gender * oMale oFemale
[Register button]
_____________________________________________________
if register button is clicked the inputs should be validated and if all the inputs are valid this will proceed to the next form passing all of its input value to this from
____________________________________________________________________________________
Create Useraccounts
Fields with * are required.
First Name *
[textbox here] ---->this should contain the value from previous form
Last Name *
[textbox here]
Password *
[textbox here] ---->this should contain the value from previous form
Password Repeat
[textbox here]
Email *
[textbox here] ---->this should contain the value from previous form
Gender * Male Female ---->this should contain the value from previous form
Seeking a * Male Female
Date of Birth *
[textbox here]
Country *
[dropdownbox here]
State/Province *
[dropdownbox here]
City *
[dropdownbox here]
[Continue Button]
______________________________________________________________________________________
Page 1 of 1
Passing value from form to form
#2
Posted 24 January 2012 - 03:48 AM
In controller action for first form, after successful validation, you can redirect control to another action:
$this->redirect( array('site/next_action','first_name'=>$first_name,...));
And then in view of next_action, load those parameters.
$this->redirect( array('site/next_action','first_name'=>$first_name,...));
And then in view of next_action, load those parameters.
Zurmo: Yii Powered Open Source CRM
zurmo.org
zurmo.org
#4
Posted 24 January 2012 - 03:52 AM
I already did that...the problem is when I am passing the value of password it will appear in the url...
#5
Posted 24 January 2012 - 04:02 AM
and the other problem is about validation,, On the first form it will prompt an error that date of birth,country, province, city is required, because that was defined in my rules needed for the validation in the second form.
#6
Posted 03 March 2013 - 03:23 AM
Ivica, on 24 January 2012 - 03:48 AM, said:
In controller action for first form, after successful validation, you can redirect control to another action:
$this->redirect( array('site/next_action','first_name'=>$first_name,...));
And then in view of next_action, load those parameters.
$this->redirect( array('site/next_action','first_name'=>$first_name,...));
And then in view of next_action, load those parameters.
how exactly are you supposed to load the parameters?
Share this topic:
Page 1 of 1

Help













