So basically, I'm coding a page that will have multiple divs (depending on the result of an SQL request, but that doesn't really matter) that all got the same structure (some text and two buttons), I need to pass a variable into this div to get it later.
So I had the idea of putting that variable into the IDs of both buttons (using php), which works fine.
type=\"submit\" id=".$id_note." name=\"delete\" value=\"Delete\"> //id_note=my variable
I know that it may not sound very clear, but that's the best I can do.Now, my question is, how do I get this ID value, in php if possible, when the button is pressed ?