Oops WAS Re: [thelist] rentacoder.com

Ken Schaefer ken at adOpenStatic.com
Mon Jul 28 22:09:44 CDT 2003


Oh boy, is my face red! :-)

<tip type="ASP" author="me">
Need to insert mulitple records into a database from a single form post? If
so, one way involves the use of three central elements:
a) on the form, some kind of method of tracking the number of records to be
inserted
b) on the form, a method for linking each form element to the record to be
inserted
c) on the page handling the form submission a loop through the
Request.Form() collection matching form elements to the associated record.

It's not as hard as one might think.

Updating multiple records works on the same principle. Here's some sample
code:
http://www.adopenstatic.com/resources/code/updatemultiplerecords.asp
(code download isn't ready yet though).
</tip>

----- Original Message ----- 
From: "Jeff Howden" <jeff at jeffhowden.com>
To: <thelist at lists.evolt.org>
Sent: Tuesday, July 29, 2003 12:52 PM
Subject: RE: [thelist] rentacoder.com


:
: ken,
:
: ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
: > From: Ken Schaefer
: >
: > That said, if one wants to discuss economics, one really
: > should read an Economics 101 text before one starts
: > sprouting nonsense.
: >
: > [snip]
: >
: > In 1817 (that's also more than 200 years ago), [...]
: ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
:
: and someone that's read an economics 101 text surely has been through math
: 101.  if they had, they'd surely know that 1817 was *not* more than 200
: years ago, at least not for another 15 years anyway, unless of course
you've
: got your clock set ahead for some nefarious reason.  ;p



More information about the thelist mailing list