If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Server Side Radio Group Validation?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-11-02, 04:35
AbsolutMauser AbsolutMauser is offline
Registered User
 
Join Date: Jun 2002
Posts: 14
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
Reply With Quote
  #2 (permalink)  
Old 07-26-02, 01:29
buddu buddu is offline
Registered User
 
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 --
Reply With Quote
  #3 (permalink)  
Old 08-21-02, 08:18
EvE EvE is offline
Registered User
 
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On