"Emmett Power" wrote in message
news:6e******** *************** ***@posting.goo gle.com...
: "Roland Hall" <nobody@nowhere > wrote in message
news:<Or******* *******@TK2MSFT NGP12.phx.gbl>. ..
: > "Emmett Power" wrote in message
news:u2******** *****@TK2MSFTNG P10.phx.gbl...
: > : I guess if I give the checkboxes the same name but different values
I'll
: > : achieve what I'm looking for.
: >
: > There is no ASP script in these but this examples show how to use
checkboxes
: > and multiple selects. Other than scripting language and related, they
are
: > exactly the same:
: >
: > VBScript version:
: >
http://kiddanger.com/lab/exp.asp
: >
: > J(ava)Script version:
: >
http://kiddanger.com/lab/expjs.asp
: >
: > HTH...
:
: Roland,
:
: Thanks for the code. It is very helpful.
Hi Emmett...
You're welcome. BTW... Here is the code for exp2.asp that both of the files
call.
<%@ Language=VBScri pt %>
<% Option Explicit
' called from c:\exp.vbs
dim oArgs, i
oArgs = split(Request.Q ueryString("tas ks"),", ")
for i = 0 to ubound(oArgs)
Response.Write( oArgs(i) & "<br />" & vbCrLf)
next
%>
This, if you're not familiar, shows you how to pass and parse a multi-value
variable rather than with a form that passes one value per variable. Ignore
the comment for called from c:\exp.vbs. This file was first used as a post
target from a local WSH file.
It started here:
http://groups.google.com/groups?q=ro...phx.gbl&rnum=2
This started with code from someone else.
Converted from WSH to VBScript/J(ava)Script for the web here:
http://groups.google.com/groups?q=ro...phx.gbl&rnum=1
....which has some other interesting examples of using checkboxes although
granted checkboxes are not the best solution in these examples. It was more
due to the topic of discussion.
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but w
ithout any warranty; without even the implied warranty of merchantability or
fitness for a particular purpose. */
Technet Script Center -
http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library -
http://msdn.microsoft.com/library/default.asp