Results 1 to 7 of 7

Thread: validate accept terms and conditions

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    58

    validate accept terms and conditions

    how do you validate terms and conditions?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: validate accept terms and conditions

    You'll have to be a little more specific - what do you need to validate about them?

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    58

    Re: validate accept terms and conditions

    the user have to accept the terms n conditions before he can proceed to the next page. if he click on "i disagree"-it is in radiobutton, there will be a pop up error message that say "u will have to accept the terms n conditions". then if he click onto "i agree", he will then be proceeded to the next page.

    this is the code
    <input name="agree" type="radio" value="i agree" />
    I Agree </label>
    <label>
    <input name="disagree" type="radio" value="i disagree" />
    I Do Not Agree</label>

    i would like to validate these two radio buttons using javascript, but i dunno how to. can someone tell me how to go abt solving this?

  4. #4

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    58

    Re: validate accept terms and conditions

    the user have to accept the terms n conditions before he can proceed to the next page. if he click on "i disagree"-it is in radiobutton, there will be a pop up error message that say "u will have to accept the terms n conditions". then if he click onto "i agree", he will then be proceeded to the next page.

    this is the code
    <input name="agree" type="radio" value="i agree" />
    I Agree </label>
    <label>
    <input name="disagree" type="radio" value="i disagree" />
    I Do Not Agree</label>

    i would like to validate these two radio buttons using javascript, but i dunno how to. can someone tell me how to go abt solving this?

  5. #5
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: validate accept terms and conditions

    I suggest you search www.w3schools.com before asking questions here. It will result in a much faster answer.

    http://www.w3schools.com/js/tryit.as...yjs_form_radio

    That link has what you need.

  6. #6
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    Re: validate accept terms and conditions

    Treat the radio button just like the gender issue that you asked in another threat here.

  7. #7
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    372

    Re: validate accept terms and conditions

    if this is something that is important, it is imperative that you do not rely upon client-side scripting to validate anything.
    it is ok as a convienance to the user, but don't think a client script alone will me from going to the next page.

Posting Permissions

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



Click Here to Expand Forum to Full Width