Home All Groups Group Topic Archive Search About


Author
23 Feb 2005 2:56 PM
HartNA
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

Author
23 Feb 2005 3:08 PM
Ray Costanzo [MVP]
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

Show quote
"HartNA" <dthmtl***@hotmail.com> wrote in message
news:%23BNFgfbGFHA.1172@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
>
>
>
Author
23 Feb 2005 4:37 PM
HartNA
Thanks, exactly what I was looking for.

Show quote
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%23ykQBmbGFHA.1740@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" <dthmtl***@hotmail.com> wrote in message
> news:%23BNFgfbGFHA.1172@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
> >
> >
> >
>
>

AddThis Social Bookmark Button