----- Original Message ----- 
From: "Ray at home" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, February 10, 2005 7:14 PM
Subject: RE: [ASP] Odd Checkbox Behavior


>
> Can you show us the HTML from the checkbox area of the page and the code
> that you're using?


Here's a sample of the HTML that is generated on the table:
<form method="POST" action="/reports/HTECad/Default.asp">

<input type="hidden" name="FORMTYPE" value="EDIT">

<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: 
collapse; font-family: Arial; font-size: 10pt" bordercolor="#111111">
  <tr>
    <th bgcolor="#C0C0C0" nowrap>&nbsp;</th>
    <th bgcolor="#C0C0C0" nowrap>&nbsp;OPS&nbsp;</th>
    <th bgcolor="#C0C0C0" nowrap>OCA</th>
    <th bgcolor="#C0C0C0" nowrap>DEPTCLASS</th>
    <th bgcolor="#C0C0C0" nowrap>TIME</th>
    <th bgcolor="#C0C0C0" nowrap>LOCATION</th>
    <th bgcolor="#C0C0C0" nowrap>EMP</th>
    <th bgcolor="#C0C0C0" nowrap>DISP</th>
    <th bgcolor="#C0C0C0" nowrap>ZONE</th>
    <th bgcolor="#C0C0C0" nowrap>MORE INFO</th>
  </tr>

  <tr >

    <td align="center" nowrap>&nbsp;<input type="checkbox" name="SELECTED" 
value="105002879">&nbsp;</td>

    <td align="center">&nbsp;&nbsp;</td>
    <td align="center" nowrap>&nbsp;<a 
href="/reports/HTECad/Default.asp?INCKEY=105002879">05-002708</a>&nbsp;</td>
    <td align="center" nowrap >&nbsp;VEHICLE STOP&nbsp;</td>
    <td align="center" nowrap>&nbsp;00:13&nbsp;</td>
    <td align="center" nowrap >&nbsp;US 70 HWY W<BR> @ YEARGAN RD</TD>
    <td align="center" nowrap >&nbsp;1441&nbsp;</td>
    <td align="center" nowrap >&nbsp;H&nbsp;</td>
    <td align="center" nowrap >&nbsp;8315&nbsp;</td>
  <td align="center" nowrap>[<a 
href="/intranet/webforms/cadinfo/detail.asp?INCKEY=105002879">DETAIL</a>] 
[<a href="/intranet/web400/report.asp?YR=5&POLI=2708">REPORT</a>] [<a 
href="/intranet/webforms/cadinfo/cadRecordAll.asp?INCKEY=105002879">ALL</a>]</td>

  </tr>

  <tr bgcolor='#C0C0C0'>

    <td align="center" nowrap>&nbsp;<input type="checkbox" name="SELECTED" 
value="105002880">&nbsp;</td>

    <td align="center">&nbsp;&nbsp;</td>
    <td align="center" nowrap>&nbsp;<a 
href="/reports/HTECad/Default.asp?INCKEY=105002880">05-002709</a>&nbsp;</td>
    <td align="center" nowrap >&nbsp;SERVED PROCESS&nbsp;</td>
    <td align="center" nowrap>&nbsp;00:26&nbsp;</td>
    <td align="center" nowrap >&nbsp;<BR>120 AVERY ST</TD>
    <td align="center" nowrap >&nbsp;1260&nbsp;</td>
    <td align="center" nowrap >&nbsp;E&nbsp;</td>
    <td align="center" nowrap >&nbsp;8333&nbsp;</td>
  <td align="center" nowrap>[<a 
href="/intranet/webforms/cadinfo/detail.asp?INCKEY=105002880">DETAIL</a>] 
[<a href="/intranet/web400/report.asp?YR=5&POLI=2709">REPORT</a>] [<a 
href="/intranet/webforms/cadinfo/cadRecordAll.asp?INCKEY=105002880">ALL</a>]</td>

  </tr>
</table>
<p align="left">
  <input type="submit" value="ACCEPT" name="ACCEPT"><input type="reset" 
value="Reset" name="B2">&nbsp; <a target="_blank" 
href="validate.asp">VALIDATE</a> </form>


The recipient page looked a little like this: (it's been revised already)

arrINCKEY = Split(Trim(request.form("INCKEY")
For i = 0 to uBound(arrINCKEY)
    lngINCKEY = arrINCKEY(i)

    strSQL = "Select from events where INCKEY = " & lngINCKEY & ";"
    rs.Open strSQL, dbConn
        process code here
    rs.Close
next 

  ----------

No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 2/10/2005


[Non-text portions of this message have been removed]



---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to