Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

request.form("checkbox") for status not value. 1

Status
Not open for further replies.

craiogram

MIS
Feb 20, 2004
126
US
I tried to do some research on this but haven't been able to find a thing on it. Perhaps someone has a idea.

Page 1 has 5 checkboxes.
Boxes 2 and 3 are "checked" and "disabled"(grayed out).
User checks off box 5 and clicks submit.

On page 2 I am using the code:
Code:
Response.Write (Request.Form("checkboxName"))
To pull value of checkbox. "on" or " ".
HOWEVER, the (checked and disabled) boxes (2 and 3) return " " instead of "on" as they are checked. Is there a way to use "request.form" to see if the check box is disabled?

Thank you in advance!

 
I don't think the browser even sends the values for disabled form elements.

You might try writing an onSubmit event handler function with client-side JavaScript... the function would enable all of the form elements when the page is submitted.
 
cLFlaVa, as you might know already if reminded that there is a widespread bug on readonly attribute for checkbox and radio input tags. I have posted a followup on your advice in the new thread (!) of the op
and you may or may not have further to add.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top