Form Display Issue

Discussion in 'HTML & Website Design' started by RichieRichR6, Apr 2, 2007.

  1. #1
    Hi all,

    I'm pretty new to javascript. Please help me. I'm having a very hard time with my form to display correctly on the 2nd page. If a user skips a field on the 1st page, it throws my data off on the second page. Please see my link below.
    http://mason.gmu.edu/~jwray/final_project.html

    What am I missing? My eyes hurt searching for this error I've made in my code.

    Thanks,
    Rich
     
    RichieRichR6, Apr 2, 2007 IP
  2. jawanda

    jawanda Peon

    Messages:
    151
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I took a look but I am not sure what is causing the problem Rich. Are you talking about how the value for childn3 = submit and childbd3 = undefined if you leave a field blank?
     
    jawanda, Apr 2, 2007 IP
  3. Rasczak

    Rasczak Peon

    Messages:
    131
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hey, i think the problem is hidden here:
    you fill data[41] and data[43] in the JS function with those unwanted values - IMHO filling all form information into one numbered array is very uncomfortable for debugging - i recommend displaying the array's contents BEFORE parsing in the retrieveData() function - then you may discover what's wrong... keep us informed on your progress.
    good luck!
     
    Rasczak, Apr 3, 2007 IP