p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asp_databases thread: Re: Update Records w/ Checkboxes


Message #1 by "Ken Schaefer" <ken@a...> on Mon, 3 Jun 2002 13:59:38 +1000
Give the checkboxes the same name:

<input type="checkbox" name="chkTest" value="1">
<input type="checkbox" name="chkTest" value="2">
<input type="checkbox" name="chkTest" value="3">
<input type="checkbox" name="chkTest" value="4">

Request.Form("chkTest") will then contain a comma-delimited list of values
(for the checkboxes that have been checked)

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: <or@a...>
Subject: [asp_databases] Update Records w/ Checkboxes


: I have an update form that displays a list of records. I want to use a
: checkbox to update records that have been printed. When I execute the
: update I get an error because I am passing one record_id only. How can I
: pass multiple record_id's to be updated?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  Return to Index