Home | Advertising Info68 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, March 14, 2025  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 



We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Problems displaying checkbox status
From: Vc Sekhar
Date: 1/11/2000 11:28:13 PM
IP: 209.217.123.6



 

I have a pretty lame ASP code that I am having problem with. I wonder if someone would be able to point out why it is not working. I am using
Windows 98 and the Personal Web Server that came with the system.

I want to use checkboxes to select one or more items out of a group of items. The problem I am having is with displaying the checked status in
the receiving program. When the boxes are checked the proper values are transmitted. However, when I use this value in an if then construct,
the if condition is always set to false.

Here are the two scripts.

Script1:

<title>checkbox status</title>

<form action="dealwithform.asp" method="POST">
<input type="checkbox" name="Name" value="Value1" >Value1
<input type="checkbox" name="Name" value="Value2" >Value2
<input type="checkbox" name="Name" value="Value3" >Value3

<input type="Submit" name="Submit" value="Submit">
<input type="reset">
</form>


Script2:

<TITLE>form2</TITLE>
<%
For Each Item in Request.Form
Response.Write (Item) %><BR>
<INPUT TYPE="text" NAME="Item" SIZE="20" MAXLENGTH="40" VALUE="
<% =Request.Form(Item) %>"><Br>
<% Next %>
<% If Name = "Value1" then %>
<input type="Checkbox" name="Name" Value ="Value1" checked > Value1
<%End If%>
<input type="Checkbox" name="Name"<% If Name<>"Value2" then %> checked
<%End If%>>Value2
<input type="Checkbox" name="Name"

Follow Up - Re: Problems displaying checkbox status - Dave 1/26/2000 12:06:23 PM


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages asp search engine active server page asp application components tutorial CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com