seamanager wrote:
> I'm building forms in HTML that are processed in PHP for
storage in a MySQL
> database - every thing works fine. But now I need a form
where for example a
> field called NAME is used several times.
If you are using the Dreamweaver Insert Record server
behavior, you
can't do this, because Dreamweaver uses the original PHP
MySQL
extension, which can handle only one query at a time. If your
purpose is
simply to add another record after inserting the first, the
easiest way
to handle this is to leave the After inserting, go to field
in the
server behavior dialog box blank. This inserts the record,
and
redisplays the form ready for another record to be inserted.
The alternative would be to use DOM manipulation to display
new form
fields, and then hand-code the PHP logic to build a multiple
insert
query. It's not particularly difficult, but I don't know of
any online
tutorials, and it involves quite a lot of coding.
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/