faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 11 people (64%) answered Yes
Recently 4 of 7 people (57%) answered Yes

Entry

How can I trap the values of checkboxes in an action page?

May 30th, 2000 06:18
unknown unknown, Jeff Wells


Set a counter in your html code:

dim d
d = d + 1
<input type="checkbox" name="AcceptAgmt<%=d%>" value="Y"> 
<%d = d + 1%>
<input type="checkbox" name="AcceptAgmt<%=d%>" value="Y">
<%d = d + 1%>
I am going throught the same thing man....Here is some code I recieved 
from
someone...I am going to try it out now..
Then on your processing page:

for d = 1 to 2
if request("AcceptAgmt" & d) = "Y" then
store
end if
next



© 1999-2004 Synop Pty Ltd