Validation again

Results 1 to 2 of 2

Thread: Validation again

  1. #1
    Join Date
    Dec 1969

    Default Validation again

    hi, <BR>I saw the validation for check box by Atrax, but still have some questions<BR><BR>If I wrote some questions with radio buttons:<BR><BR>&#060;FORM METHOD="POST" ACTION="evaluation.asp"&#062;<BR>1. Are you a student ?<BR>&#060;INPUT TYPE="radio" NAME="q1" VALUE="yes"&#062;<BR>&#060;INPUT TYPE="radio" NAME="q1" VALUE="no"&#062;<BR><BR>2. Do you live in NY ?<BR>&#060;INPUT TYPE="radio" NAME="q2" VALUE="yes"&#062;<BR>&#060;INPUT TYPE="radio" NAME="q2" VALUE="no"&#062;<BR><BR>3. etc.....<BR><BR>My question:<BR>Because the radio button names for question 1 & 2 is not the same, how can I confirm incomplete radio button?<BR>Do you think I have to create an array object for those radiobutton names? (such as elements[x] in the previous validation for check box example)<BR><BR>Thanks<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Validation again

    a single radio button *group* is already an array. one way of ensuring something is passed (and the easiest) is to have one of them selected by default.<BR><BR>j

Posting Permissions

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