0 Replies Latest reply on Jul 3, 2006 5:42 AM by ab9hz

    Problem with variable

      Hi. I'm making a form for work for people to book places on training courses. Having an annoying problem with variables that i'm hoping has a simple solution. Any help with this will be much appreciated.

      All the info is held in an external text file which looks like this (but much longer):

      &course0=Please choose a course&
      &course1=my course one&
      &c1date0=Select a date...&
      &c1date1=15 September 2006&
      &c1time1=Time: 10:00 to 16:00&
      &c1date2=23 January 2006&
      &c1time2=Time: 11:00 to 16:00&
      &c1date3=28 February 2007&
      &c1time3=Time: 12:00 to 16:00&

      &course2=my course 2&
      &c2date0=Select a date...&
      &c2date1=15 September 2006&
      &c2time1=Time: 11:00 to 16:00&
      &c2date2=08 January 2007&
      &c2time2=Time: 9:00 to 16:00 &
      &c2date3=15 February 2007
      &c2time3=Time: 12:00 to 16:00&

      The course titles are loaded into an array and then into a combobox. When a course is chosen a second combobox loads the relevant dates array for that course. When a date is chosen the time is shown in a dynamic text box.

      Problem is - if more than one course is on the same date it will show the time for the latest course with that date. For example - course 1 is on 15 sept at time 10:00 to 16:00, course 2 is also on 15 sept at time 11:00 to 16:00. When 15 Sept is chosen for course one it displays the time for course 2 on this date - presumably because it comes later in the text file.

      I've attached the actionscript for this - Can anyone help me sort this out??