Hi all, I'm new to codeigniter, and i want to know how to approach or a small example as to how to get the following:
1) If I have a form, and it has fields say asking for number of some category for example:
first in a drop down we have this , choose type of purchase to make=> in the drop down we have categories as electronic goods, clothing, etc etc. And if the person chooses say, Electronic goods, we get the following as below.
Number of laptops= , Number of palmtops= , number of smartphones= etc etc
Should the person choose clothing, he should get like Number of shirts= , number of pants= , etc
and so on based on what he chooses(these I give in the form).
2) After we click next, trigger it to a customise form inside. As in, we should get the entered say if the person chose electronic goods, he would get the categories as:
laptops(with its subcategories), palmtops(with its subcategories), smartphones(with its categories) etc etc
3) So far, I have managed to store the individual values and their selected subcategories which I want to customise. So, If I enter say number of laptops as 3, and number of palmtops as 2, number of smartphones as 3, I get only one single customisation value in the next form for each category.
Like I'll give an example:
*Choose number of category-> electronic goods
Number of laptops='3' Number of palmtops='3' Number of Smartphones='2'. When I click next, I get something like
*Laptops->subcategories->subsubcategories
Palmtops->subcategories->subsubcategories
Smartphones->subcategories->subsubcategories**
Each category has its own unique subcategory, and subsubcategory.
How I want it is;
*Choose number of category-> electronic goods
Number of laptops='3' Number of palmtops='3' Number of Smartphones='2'.
I should get like
*1 Laptops->subcategories->subsubcategories
2 Laptops->subcategories->subsubcategories
3 Laptops->subcategories->subsubcategories
I want how many I enter as in number of in the first form to repopulate the same number of times in the next form. Please suggest me a method, or a way, or I'd be grateful if someone could give me a small example.
1 Palmtops->subcategories->subsubcategories
2 Palmtops->subcategories->subsubcategories
3 Palmtops->subcategories->subsubcategories
1 Smartphones->subcategories->subsubcategories**
2 Smartphones->subcategories->subsubcategories