Im having some troubling getting some HTML/PHP to work. Ive got a HTML file that contains 3 basic table areas. In one area I have a input field and a button that communicates with a SQL database to remove the entry supplied from the HTML box. In the second table line I have a form to add a new item into the database.
However when I press the button in the second table area it runs the first PHP function. Am I missing anything?
<table width="651" height="231" border="1">
<tr>
<td width="1163" height="23"> </td>
</tr>
<tr>
<td height="96">
<table>
<form method=post action="removeRecord.php">
<input type="text" name="boatNumber" font color="white"> Enter a boat to remove<br>
<input type=submit value="Remove boat">
</table>
</td>
</tr>
<tr>
<td height="102">
<h1>Register a new boat.</h1>
<table>
<form method=post action="addRecord.php">
<input type="text" name="boatNumberNew" font color="white"> Enter the boats number.<br>
<input type="text" name="boatType" font color="white"> Enter the type of boat.<br>
<input type="text" name="decks" font color="white"> :Number of Decks<br>
<input type="text" name="cabins" font color="white"> :Number of cabins<br>
<input type="text" name="location" font color="white"> Location.<br>
<input type="text" name="rent" font color="white"> Rent.<br>
<input type="text" name="staffNumber" font color="white"> Enter assigned staff member.<br>
<input type="text" name="branchNumber" font color="white"> Enter assigned branch.<br>
<input type="text" name="ownerNumber" font color="white"> Enter owner number.<br>
<input type=submit value="Add boat">
</table>
</td>
</tr>
</table>