Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2002
    Posts
    14

    Unanswered: Server Side Radio Group Validation?

    I am creating a form which will update an existing record in an Access table. I am using the Request object with Form to validate all my text boxes. However, I am at a loss as to how to use Request.Form to validate a checkbox. The client side method of:

    for (i = 0; i < radioGroup.length ; i++){
    if (!radioGroup[i].checked == '1') errorString += "No item selected";
    }

    does not seem to work because the Request object is not the same as a a simple form object on the client side.

    Does anyone know a good way of performing server side radio group validation?

    Thx,

    ~AbM

  2. #2
    Join Date
    Feb 2002
    Location
    India
    Posts
    38
    hi
    if you are using Checkboxes /Radio buttons you need to validate as follows

    reqest.form("chkbox/radiobtn")="on"

    try using "on" option.
    -- Prasad --

  3. #3
    Join Date
    Aug 2002
    Location
    Holland
    Posts
    16
    Or try this:

    <input type="radio" name="col1" value="1" <%=col1%>>
    <input type="radio" name="col1" value="0" <%=col2%>>



    if rs("col1") = TRUE then
    col1= "CHECKED"
    col2 = ""
    else
    col1= ""
    col2 = "CHECKED"
    end if

Posting Permissions

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