I need some help with this form [url removed, login to view] so that joining members can add up to six in total family members.
At present, you select membership type for the main member only and add additional members in a big textarea...this is no good as different family members have different membership types.
What I need is you to be able to select your membership type from the drop down box, (i will remove all FAMILY options from this list) if your type is ex TQ a box should appear (below) asking for your TQ number and this should be a required field.
There should be a small link below this that says "Add another member"...if this is clicked then another dropdown box appears for them to select membership type, a basic input filed for their name (required field) and the same deal with the box for TQ as above. (May also need a link for remove additional member if they decide not to add the additional member while they are going).
Members should be able to add up to 5 additional family members.
Every time a new member is added, the price must tally in a box at the bottom of the page. I can supply the cost per membership type. The total price is not simply each membership price added up...for each additional member $5 is taken of the additional member price. So $35 + $35 = $70 - $5 = $65.
I need help making sure the variables are passing to the next page and I will handle the database insertion. This will mean creating a simple php page that echos the variables for testing purposes.
I need an elegant, lightweight Ajax/JQuery solution for this. The site is written in php/mysql.