PDA

View Full Version : Dynamic Forms PHP and Javascript



paulbeynon
08-04-2010, 02:37 PM
I am trying to create a contact form which has many features in it, one of the features I am currently stuck on is a dynamic list, it seems like it should be relatively easy, and I have it half working!! What I am trying to achieve is the following:

List 1 - "Course" - Options = Course 1, Course 2, Course 3

List 2 - "No of students" - If Course 1 selected =1, 2, 3, 4, 5, 6
If Course 2 selected = 1, 2, 3, 4
If Course 3 selected = 1, 2, 3, 4, 5, 6, 7, 8

List 3 - "Cost" - this needs to be just an area that updates the cost dependant on List 2 - If Course 1, Students 1 - 3 selected, Price = x per Indiv, If Course 1, Students 4 - 6 selected Price = x per Group, etc...

Each Course has a different number of students it would have, and each priced differently.

I can get the two drop down lists working, but I cannot get the third element working.

If anyone can help with how I should be doing this, I would be very grateful.

Many Thanks

Paul

Beverleyh
08-05-2010, 04:51 AM
Can you post your code so far to give us something to work with. Thanks