By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,382 Members | 1,637 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,382 IT Pros & Developers. It's quick & easy.

Get Checkbox "Checked" value on form submit

P: n/a
How do I get whether a checkbox is ticked in a form on a form's submission
(true or false)? How do I use the Request object in ASP?
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"John E" <La********@hotmail.com> writes:
How do I get whether a checkbox is ticked in a form on a form's submission
(true or false)?
onsubmit="if(this.form.elements['checkboxName'].checked){alert('Check!');}"
How do I use the Request object in ASP?


I have never used ASP, but the code I have been subjected to just
said something like
Request.blah
That is how you access it in Javascript. What its properties are,
I leave to the ASP-group to answer.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

P: n/a
Well, this should work

<%
If request.form("thecheckbox") <> "" Then Response.write "Yes, it was
checked." %>

That's assuming you gave your checkbox a value greater than "".

Ray at work

"John E" <La********@hotmail.com> wrote in message
news:be***********@ID-83837.news.dfncis.de...
How do I get whether a checkbox is ticked in a form on a form's submission
(true or false)? How do I use the Request object in ASP?

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.