ASP Javascript - How do I test Request.Form("EmailCbx")?

R

Ron

I'm trying to check the value of a checkbox and respond accordingly. I had
one checkbox working then I changed the name and value and it stopped
working. I've checked very carefully to make sure that everything matches -
case, name, etc. and it does.

How do I test what the value of Request.Form("EmailCbx") is after my user
presses submit on the calling page?
 
E

Evertjan.

Ron wrote on 24 feb 2006 in comp.lang.javascript:
I'm trying to check the value of a checkbox and respond accordingly. I
had one checkbox working then I changed the name and value and it
stopped working. I've checked very carefully to make sure that
everything matches - case, name, etc. and it does.

How do I test what the value of Request.Form("EmailCbx") is after my
user presses submit on the calling page?

<%@ LANGUAGE = JScript %>
<%

if (request.form("EmailCbx")!='')
response.write('Checked!')
else
response.write('Try again, stupid!');

%>
 
R

Ron

Thank you, I used your answer and based on it added this:
response.write(request.form("EmailCbx")), which showed me that the problem
was an outdated page in my cache. Thanks again!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top