I am building an order form to allow people to register and pay for an event. I have two questions, both of which are probably more related to Javascript coding within the order form rather than nBill functionality.
1. The form will allow people to register up to eight (

people at one time. On the very first page of the order form editor, I have a drop down combobox which asks the user how many people they would like to register. There are eight fields on the next page in the order form editor. If the user selects "6" from the combobox on the first page and then clicks the next button, I would like the second page to simply hide the last two fields on the form. I successfully implemented control hiding for another page using check boxes based on this topic
http://www.nbill.co.uk/forum/index.php/topic,2219.0.html. I currently have the following code on within the Onload Javascript field of page 2. Control ID "ctl_134" is the drop down combo box on page 1. Control ID "ctl_178" is one of the controls to be hidden if the selected value were 1.
if (document.getElementById(ctl_134).selectedIndex == 1)
{
document.getElementById(ctl_178).style.display = 'none';
}
Do I need to interface with the $POST array instead and if so, are there any examples on how to do this?
2. Page 2 is where the user enters the name(s) of the people to be registered for the event. The following pages essentially sell add on items for each registrant such as paying membership dues, entering the golf tournament, etc. I currently have label type controls which read "Registrant 1", "Registrant 2", etc. Similar to the first question, how can I extract the value entered by the user in the "name" field from page 2 and populate the label values in later pages?
Thanks,
Tom