I have a script which generates a table containing numerous rows and coloumns. On each end of a row, is a Submit button, whose name is one of an array generated on running the script, and goes like: delete_CN[0], delete_CN[1] etc.
While processing the form POST, I need to determine which Submit button was clicked. Currently, when I see a print_r or dump_vars, I see the following: ["delete_CN"]=> array(1) { [0]=> string(6) "Delete" }
, which does not give the array index of the button that was pressed.
How should I best go about doing this? I need to find the array index of the submit button which was pressed, or another way to uniquely identify the row of the Submit button, to process the data. The original form is dynamically generated by reading a zonefile, and the elements on the same row are all arrays.