You could encode the field names for each record with the corresponding primary key from the database, e.g. ...name="firstname.10123" default="Pedro" ... name="firstname.12139" default="Lisa"...

If the checkbox indicates a record to be changed, grep over $query->param for the common part of the checkbox names to extract the primary keys to look for.

This will make for large queries. It may be worthwhile to cook up some javascript to weed out unchanged fields on the client side.

Caution, that is very insecure. It is only suitable for ssl connections with authentication for admin. If just anybody could use this, the keys could be forged with ease.

After Compline,
Zaxo


In reply to Re: mysql: edit mutliple forms with one submit button by Zaxo
in thread mysql: edit mutliple forms with one submit button by Zecho

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.