Hi All,
I'm new to this forum (and PHP), so please pardon me if I say something stupid.
Okay, what I was trying to do was re-create (in PHP) the functionality of selecting (choosing) checkboxes to move/copy or delete email messages that yahoo!mail; but I wanted to modify that to delete multiple recrods from the database instead.
I have the following html file which submits a from (frmList) to the test.php file using the GET method.
When the form is posted I can see the URL containing all the selected records (i.e. test.php?mid=1001&mid=1002&mid=1003) but when I do $_GET['mid'] I only get the last (1003) part and not the other two.
I even tried the list($key,$val) method; but that didn't get me any where.
Can somebody please tell me what is it that I am doing wrong?
any help will be greatly appreciated.
---[list.html]---
<html>
<body>
<form name="frmList" action="test.php" method="get">
<table>
<tr>
<td><input name="mid" type="checkbox" value="1001"></td>
<td>Title 1</td>
</tr>
<tr>
<td><input name="mid" type="checkbox" value="1002"></td>
<td>Title 1</td>
</tr>
<tr>
<td><input name="mid" type="checkbox" value="1003"></td>
<td>Title 1</td>
</tr>
<tr>
<td colspan="2"><input name="btnSend" type="submit" value="Delete"></td>
</tr>
</table>
</form>
</body>
</table>
Please let me know the aformentioned if clear.
Thanks,
insha