|
-
Oct 25th, 2001, 10:04 AM
#1
Thread Starter
PowerPoster
Unique Problem
Please help. How can I evaluate in the asp code when a checkbox has been checked or not checked? I know how to set it as checked.
See when a user does a form submit when I gather their data I need to only evaluate what items were checked, not all of the items every time.
Thanks
-
Oct 25th, 2001, 10:24 AM
#2
Frenzied Member
Can't be that unique a problem if you cross posted it.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Oct 25th, 2001, 11:42 AM
#3
Frenzied Member
Uhm... and you are asking for help?
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Oct 25th, 2001, 05:47 PM
#4
-
Oct 26th, 2001, 02:59 AM
#5
Hyperactive Member
Try this one:
Code:
test.htm
-----------
<form name=frm action=test.asp method=post>
<input type="checkbox" value="Value1" name="product1">First
<br><input type="checkbox" value="Value2" name="product1">Second
<br><input type="checkbox" value="Value3" name="product1">Third
<br><input type="checkbox" value="Value4" name="product1">Fourth
<input type=submit value=submit>
</form>
test.asp
----------
response.write request.form("product1")
This returns a comma separated string containing the values of the selected products. Mind that i have used the same name "product1" (thats up to u) ..since this would fetch me the selected products at one go. I then manipulate the result using split/join method combination.
- Jemima.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|