http://www.perlmonks.org?node_id=940367


in reply to Re: Insert into table when user clicks one of many submit buttons
in thread Insert into table when user clicks one of many submit buttons

please read http://www.w3.org/TR/html4/interact/forms.html#successful-controls and CGI. it's really no magic and nothing new to have form fields with the same name.
  • Comment on Re^2: Insert into table when user clicks one of many submit buttons

Replies are listed 'Best First'.
Re^3: Insert into table when user clicks one of many submit buttons
by aaron_baugher (Curate) on Nov 28, 2011 at 14:09 UTC

    Thanks for the correction. I reckoned that's how it worked, since other field types work that way; but I didn't take the time to look it up because it wouldn't have solved his problem. Treating it as an array would give him the values of all his hidden fields instead of only the first one, but that still wouldn't tell him which item(s) was selected. I should have mentioned it, though.

    Aaron B.
    My Woefully Neglected Blog, where I occasionally mention Perl.