Okay, so I have a page with a heap of fields and buttons on it (and want to keep it like that really) inside one form.
Layout
Box 1 Button 1
Box 2 Button 2
Box 3 Button 3
Box 4 Button 4
etc...
Box 1 is called 'amount1$id'
Box 2 is called 'amount.$id' where $id is the $id of the data being displayed etc
So a sample form may look like
Box: "amount22" Button: "Pay22"
Box: "amount25" Button: "Pay25"
Box: "amount32" Button: "Pay32"
Box: "amount39" Button: "Pay39"
Box: "amount420" Button: "Pay420"
Its working fine up to that point.
My problem now is that I can't work out how to get that id number from the form once submitted. If I could get the button name somehow I could do it, although I don't know the button or box names when writing the processing script. I could use a loop and check if button1 to buttonX was posted etc, although if there is a large number of entries in the database, then that starts to become a problem. Thoughts?