473,326 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Checkbox Question

I have a script that will work on it is own, but the problem is the site I
am trying to implement the checkbox on a site with attachments on the same
form. In my testing I check LOW. The result I am looking for is YES, but
it keeps coming up NO

Here is a snippet from the HTML code

<form enctype="multipart/form-data" action="helpsoft_process.asp"
method="POST">
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="prLow" value="">Low</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="prMed" value="">Med</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="prHigh" value="">High</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="prCrit" value="">Critical</td>

Here is a code from the ASP page

Dim mySmartUpload, intCount, Conn, RS
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.Upload

pLow = mySmartUpload.form("prLow")
pMed = mySmartUpload.form("prMed")
pHigh = mySmartUpload.form("prHigh")
pCrit = mySmartUpload.form("prCrit")

If mySmartUpLoad.Form("prLow") = "on" Then
Response.Write "yes"
else
Response.write "no"
End If

Jul 22 '05 #1
2 1784
Give your checkboxes the same name, and then unique values as such:

<form enctype="multipart/form-data" action="helpsoft_process.asp"
method="POST">
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="chkUrgency" value="Low">Low</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="chkUrgency" value="Med">Med</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="chkUrgency" value="High">High</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="chkUrgency" value="Critical">Critical</td>
<input type="submit">
<%
set mySmartUpload = Request

sUrgency = mySmartUpload.form("chkUrgency")
Response.Write sUrgency

%>

Ray at work

"HartNA" <dt*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I have a script that will work on it is own, but the problem is the site I
am trying to implement the checkbox on a site with attachments on the same
form. In my testing I check LOW. The result I am looking for is YES, but
it keeps coming up NO

Here is a snippet from the HTML code

<form enctype="multipart/form-data" action="helpsoft_process.asp"
method="POST">
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="prLow" value="">Low</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="prMed" value="">Med</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="prHigh" value="">High</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="prCrit" value="">Critical</td>

Here is a code from the ASP page

Dim mySmartUpload, intCount, Conn, RS
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.Upload

pLow = mySmartUpload.form("prLow")
pMed = mySmartUpload.form("prMed")
pHigh = mySmartUpload.form("prHigh")
pCrit = mySmartUpload.form("prCrit")

If mySmartUpLoad.Form("prLow") = "on" Then
Response.Write "yes"
else
Response.write "no"
End If

Jul 22 '05 #2
Thanks, exactly what I was looking for.

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2****************@TK2MSFTNGP09.phx.gbl...
Give your checkboxes the same name, and then unique values as such:

<form enctype="multipart/form-data" action="helpsoft_process.asp"
method="POST">
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="chkUrgency" value="Low">Low</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="chkUrgency" value="Med">Med</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="chkUrgency" value="High">High</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="chkUrgency" value="Critical">Critical</td>
<input type="submit">
<%
set mySmartUpload = Request

sUrgency = mySmartUpload.form("chkUrgency")
Response.Write sUrgency

%>

Ray at work

"HartNA" <dt*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I have a script that will work on it is own, but the problem is the site I am trying to implement the checkbox on a site with attachments on the same form. In my testing I check LOW. The result I am looking for is YES, but it keeps coming up NO

Here is a snippet from the HTML code

<form enctype="multipart/form-data" action="helpsoft_process.asp"
method="POST">
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="prLow" value="">Low</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="prMed" value="">Med</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="prHigh" value="">High</td>
<td align=center width="150" class="pbMain_data3"><input type="checkbox"
name="prCrit" value="">Critical</td>

Here is a code from the ASP page

Dim mySmartUpload, intCount, Conn, RS
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.Upload

pLow = mySmartUpload.form("prLow")
pMed = mySmartUpload.form("prMed")
pHigh = mySmartUpload.form("prHigh")
pCrit = mySmartUpload.form("prCrit")

If mySmartUpLoad.Form("prLow") = "on" Then
Response.Write "yes"
else
Response.write "no"
End If


Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jay | last post by:
Hi everybody ! I am currently writing a webpage that displays a list of records ( each record has a checkbox associated with it) to allow users to select any record they want to delete (much...
0
by: claudel | last post by:
Hi I have a newb PHP/Javascript question regarding checkbox processing I'm not sure which area it falls into so I crossposted to comp.lang.php and comp.lang.javascript. I'm trying to...
2
by: Fred | last post by:
Hi, I defined a form consisting of checkboxes like: <form> <input type="checkbox" name=ck id=ck onclick="check(this.form)" <input type="checkbox" name=ck id=ck onclick="check(this.form)" ........
10
by: Jennyfer J Barco | last post by:
Hello, I have a datagrid that brings some information from a query. I need to have a checkbox in each row so the user can select the rows he wants to reprint. Is it possible to have a checkbox...
4
by: Matrixreloadedth | last post by:
How to change disable color of Checkbox??? I have a checkbox with forecolor in red but when i disable by set Enable properties to false forecolor is changed to gray color but i don't want it. how...
34
by: clinttoris | last post by:
Hello Experts, I have been told to post this in the Javascript forum as I want to do this client side just before my form gets submitted. Once the user clicks the submit button a javascript...
5
by: FP | last post by:
I have a list of results. When the user clicks a checkbox I need it to update the database but I don't want it to reload the current page. Currently I have the following; - a checkbox in a form...
4
by: Hexman | last post by:
Hello All, I'd like to find out the best way to add a cb column to a dgv and process efficiently. I see at least two ways of doing it. ------------------------------- 1) Add a cb to the dgv,...
3
by: chiku1523 | last post by:
Hi, Please find the following code. In function setAnswers, I am looping with each question. I have inner loop, which is looping for each answers of the questions. If any of the answer for question...
1
Death Slaught
by: Death Slaught | last post by:
I play a game that when your backpack fills with items (the limit is 45) you must choose items to discard by unchecking their box. This is very annoying and time consuming so I was wondering if it...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.