Results 1 to 2 of 2

Thread: Dynamic Forms PHP and Javascript

  1. #1
    Join Date
    Aug 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Forms PHP and Javascript

    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

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Can you post your code so far to give us something to work with. Thanks
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •