|
|
|
|
|
| | |
| |
Active Server Pages ASP a directory of ASP tutorials applications scripts components and articles for the novice to professional developer. CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
|
|
Subject: |
Re: Problems displaying checkbox status |
|
From: |
Dave |
|
Date: |
1/26/2000 12:06:23 PM |
|
IP: |
24.229.31.103 |
Im pretty new to this but was dealing with similar issues recently. I dont know about PWS - I use strictly IIS 4.0 to test my ASP.
First, I think on this line:
<% If Name = "Value1" then %>
you need to say
<% If Request.Form("Name") = "Value1" then %>
Also, what I did was set a variable on or off if each box was checked. Heres a sample: (The "cb..." variables have already been parsed from their "request.form" equivalents, to make sure no one hacks the script ;)
<% check to see if ongoing choice selected; check box accordingly:
If cb_flu_card = "on" then
cb_flu_card_checked = "checked"
else
cb_flu_card_checked = ""
end if
If cb_back_card = "on" then
cb_back_card_checked = "checked"
else
cb_back_card_checked = ""
end if
%>
<INPUT id=flu_card name=cb_flu_card
type=checkbox <%=cb_flu_card_checked%>> Post Card about Flu
<INPUT id=back_card name=cb_back_card
type=checkbox <%=cb_back_card_checked%>> Post Card about Back Ache
Hope this helps... |
Previous Message
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|