Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

How do I pass a value from Category to signup-form and beyond!!

Quote Reply
How do I pass a value from Category to signup-form and beyond!!
I've added a field to Category db called: "color."
I've added "color" also to the preserved parameters from the admin.
I've added a global to require register/loging when user access certain blocked categories.
Now, I want the color value to be passed to the blocked categories. However, there is signup form that falls in the middle...
So user clicks on Cat1 >> Signup form >> Cat2 >> SubCat2.1 >> SubCat 2.2

I want to pass "Color" value from Cat1 to "SubCat2.2" .

Please note, that Cat1, Cat2, SubCat2.2...etc. have their own "color" value.. but I want to over write that value with the one passed from Cat1.
So I thought of using preserved parameter.. but somehow did not work out right...
So I thought of passing the color if I stored the color value in the signup form then passed it forward to all other categories for the same user.

Can you please give me few hints to do that as I did create a user_color filed in the Users table.. but somehow the color value is not read by signup form ... forward..

thank you
Mark