Using Javascript to build an interactive form

Discussion in 'JavaScript' started by jntwebdesign, Mar 12, 2007.

  1. #1
    I am building an interactive form using JavaScript, mainly because it needs to be accessible offline. I consist of four pages:

    1) Initial Form where user selects products to compare
    2) Second form where user inputs values that will be used to perform calculations from first form
    3) Text output with calcualtions from page 1 & 2
    4) Graphical output of data from page 3

    Page one is laid out like this:
    Products chosen from a dropdown
    ProductA1 -- ProductB1
    ProductA2 -- ProductB2
    ProductA3 -- ProductB3

    The field names are ProductA1, ProductB1, ProductA2 and so on...

    Page 2 will be a simple form with 4 text fields:
    Water Used:
    Electricity Used:
    Gas Used:
    Sewer Used:

    And Page three will output the data like this:

    (two columns, left will be ProductA# and right column will be ProductB#

    I am familiar with PHP, but not so much with JS. So, the first thing I need to know is how to select the GET URL vars seperated by ProductA#, and ProductB#?
     
    jntwebdesign, Mar 12, 2007 IP