Hi
Can anyone see the problem here ?
If I click on the submit in the first form I get the hidden datafield value=1 sent to my editHotel.php script.
HOWEVER if I use method=GET it works !!!
BUT I want method=POST please.
<table border="1">
<tr>
<td>name</td>
<td>tel</td>
<td>postcode</td>
</tr>
<tr>
<td>Hotel Prima</td>
<td>09990888</td>
<td>sa56dd</td>
<td><form action="editHotel.php" method="post" enctype="multipart/form-data" name="editHotel" target="_self">
<input name="hotelID" type="hidden" value="2">
<input name="edit" type="submit" value="Edit">
</form></td>
</tr>
<tr>
<td>Hotel Splendide</td>
<td>10292423394</td>
<td>sa2 8ac</td>
<td><form action="editHotel.php" method="post" enctype="multipart/form-data" name="editHotel" target="_self">
<input name="hotelID" type="hidden" value="1">
<input name="edit" type="submit" value="Edit">
</form></td>
</tr>
</table>
Can anyone see the problem here ?
If I click on the submit in the first form I get the hidden datafield value=1 sent to my editHotel.php script.
HOWEVER if I use method=GET it works !!!
BUT I want method=POST please.
<table border="1">
<tr>
<td>name</td>
<td>tel</td>
<td>postcode</td>
</tr>
<tr>
<td>Hotel Prima</td>
<td>09990888</td>
<td>sa56dd</td>
<td><form action="editHotel.php" method="post" enctype="multipart/form-data" name="editHotel" target="_self">
<input name="hotelID" type="hidden" value="2">
<input name="edit" type="submit" value="Edit">
</form></td>
</tr>
<tr>
<td>Hotel Splendide</td>
<td>10292423394</td>
<td>sa2 8ac</td>
<td><form action="editHotel.php" method="post" enctype="multipart/form-data" name="editHotel" target="_self">
<input name="hotelID" type="hidden" value="1">
<input name="edit" type="submit" value="Edit">
</form></td>
</tr>
</table>