Hi, I have created the table format like as follows:
lookup table:
[xml]---------------------------------------
|id | type | code | value |
|1 | 1 | PP | profile_pic |
|2 | 2 | PRP | product_pic |
|3 | 3 | GP | gallery_pic |
|4 | 4 | FP | forum_pic |
[/xml]
gallery table:
[xml]-------------------------------------
|id | user_id | type | image |
|1 | 1 | 1 | 1.jpg |
|2 | 1 | 2 | new.jpg |
|3 | 1 | 2 | images.jpg |
|3 | 2 | 4 | 2435.jpg |
-------------------------------------[/xml]
And, now what I want to do is: in my form I want to add the above field in the single form.
So, I want to know, how to pass the field type in the form page? Or whether I have to do anything in the model or controller?
Please help me