If the checkbox is not checked, it will not return a value:
<form method="post" action="someotherpage.asp">
<input type="checkbox" name="checkbox1" value="This is checkbox number one."
checked>
<input type="checkbox" name="checkbox2" value="This is the second
checkbox.">
<input type="submit">
</form>
post to:
Response.Write Request.Form("checkbox1") & "<hr>"
Response.Write Request.Form("checkbox2")
There will be no value for checkbox2, because it was not checked.
You could also use some logic like:
bCheckbox2WasChecked = Len(Request.Form("checkbox2")) > 0
Response.write bCheckbox2WasChecked
Ray at work
"Renie83" <re*****@lycos.com> wrote in message
news:8e**************************@posting.google.c om...
What I have are two pages. One is a form with some input boxes and
check boxes on it. It is posting to a different script page that
inserts into a database and sends the fields through email. My problem
is sending the information which is checked through to the next page.
Each of my checkboxes is given the value of what should be inserted in
the table and into the email. I just need a way of determining which
checkbox is checked so I can send my information.
Thanks a bunch!
Renie83