ok I'm stuck - help please?

Discussion in 'JavaScript' started by DesignSamples, Nov 20, 2008.

  1. #1
    I'm getting an error, can anyone tell me my mistake... for some reason I don't see it...

    Thanks!

    <!--
    function validate_form ( )
    {
    valid = true;

    if ( document.question.name.value == "" )
    {
    alert ( "Please enter Your Name" );
    valid = false;
    }


    if ( document.question.phone.value == "" )
    {
    alert ( "Please enter Your Phone Number." );
    valid = false;
    }


    if ( document.question.citystate.value == "" )
    {
    alert ( "Please tell us the City & State You reside in." );
    valid = false;
    }


    if ( document.question.vehicle_type.value == "" )
    {
    alert ( "Please tell us what Type Of Vehicle you are using." );
    valid = false;
    }


    if ( document.question.moving_blankets.value == "" )
    {
    alert ( "Please tell us if you have Moving Blankets." );
    valid = false;
    }


    if ( document.question.years.value == "" )
    {
    alert ( "Please tell us how much Experience you have." );
    valid = false;
    }


    if ( document.question.lic.value == "" )
    {
    alert ( "Please tell us if you are Licensed or Insured." );
    valid = false;
    }


    if ( document.question.coverage.value == "" )
    {
    alert ( "Please tell us What Areas You Can Cover." );
    valid = false;
    }


    if ( document.question.days.value == "" )
    {
    alert ( "Please tell us Your Availability." );
    valid = false;
    }

    if ( document.question.help.value == "" )
    {
    alert ( "Please tell us if you Have Access to a Helper." );
    valid = false;
    }

    if ( document.question.paypal.value == "" )
    {
    alert ( "Please tell us if you Have a PayPal Account." );
    valid = false;
    }

    return valid;
    }

    //-->
     
    DesignSamples, Nov 20, 2008 IP
  2. DesignSamples

    DesignSamples Banned

    Messages:
    170
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    nevermind - close this thread / delete
     
    DesignSamples, Nov 20, 2008 IP