Hi,
I'm trying to get people registered for a convention. There are several types of possible registrations -- individual, family, child, etc. and you can have more than one of any of the registration types. I'm planning to question people on the initial page to find out how many of each type of form they need. Then I thought I'd store all of that in a session variable -- probably an array -- so I can spit out the forms to them one at a time. So for example, someone might say that they need 2 individual forms, 1 family form, 1 child form and 2 sibling forms. I'd end up with data that looks like this:
$ind = 2;
$fam = 1;
$child = 1;
$sib = 2;
I can get it to do that much. It's the next part that's stumping me. What I thought was to populate an array with their own personalized form list, so, for example, the above data would end up looking like:
formList = array('ind', 'ind', 'fam', 'child', 'sib', 'sib');
How do I do that? Or maybe there's a better way to do the whole thing?