Hi
I am currently learning PHP and are wondering the following if you have a form with multiple buttons on it with each a different name, how do you determine which button has been selected.
In this item i want to display values in a grid but the first two colums muust have Edit and delete buttons in it. If you press the edit button for example i want to see in php which button is it. If i know which button has been pressed then the rest would be easy, just a normal sql statement to mySQL with a simple if
if anybody please have any suggestions i would really appreciate it
thank you very much
Johan
Code:
<html><body><form name="frmMain" action=LoginSubmit.php method="post" action="get">
<table width="90" border="2" cellspacing="1" cellpadding="0">
<tr> <td><input type=submit name='edtA1' value ='Edit a1'></td>
<td><input type=submit name='delA1' value ='Delete a1'></td>
<td width = 10> Item A </td></tr>
</table></form></body></html>