I am new in PHP.
I use Macromedia Dreamweaver MX for PHP and MySQL.
I have a form that shows rows of record from a database. Each row has a button and a text entry. I wanted to submit the form but cannot determine what row was clicked, how do we do that?
Roni Joven
Form submission dynamic
Moderator: General Moderators
-
microthick
- Forum Regular
- Posts: 543
- Joined: Wed Sep 24, 2003 2:15 pm
- Location: Vancouver, BC
1) You could design your page so that each row is a new form, then have a hidden field called id that contains the unique row identifier.
2) Or, you can creatively give names to those submit buttons, so that they are called submitButton120 then submitButton121, then just parse out the number at the end of the name so you can do your queries properly.
2) Or, you can creatively give names to those submit buttons, so that they are called submitButton120 then submitButton121, then just parse out the number at the end of the name so you can do your queries properly.