I have a page that builds a list of users. I’ve added a checkbox next to user name and would like to submit user IDs when I click on the next page in results paging. Here’s how it looks when I look at page source:
[code=php]
<form name=”SelectForm” method=”post”>
<table>
<tr>
<td><input name=”SelectedID[1984]” value=”1984″ type=”checkbox”></td>
<td>User name</td>
</tr>
<tr>
<td><input name=”SelectedID[457]” value=”457″ type=”checkbox”></td>
<td>User name</td>
</tr>
<tr>
<td><input name=”SelectedID[3]” value=”3″ type=”checkbox”></td>
<td>User name</td>
</tr>
<tr>
<td colspan=2>
<div style=”float: left;”>
<input name=”go2email” value=”send a message to selected” type=”submit”>
</div>
<div style=”float: right;”>
<b>1</b></font> |
<a href=”./?slate=AVBAFlo3A” class=”a-nl” onclick=”javascript:document.SelectForm.submit();”>2</a> |
<a href=”./?slate=AVBAFlg3A” class=”a-nl” onclick=”javascript:document.SelectForm.submit();”>3</a>
</div>
</td>
</tr>
</table>
</form>
It works when I use the button, but not when I use paging links. Is there anything I miss here?
What I’m trying to do here is to display the list of users. When checkboxes are selected and if the button (go2emai) is submitted an new screen is displayed that will allow fo message composition form and then sent to the array of users selected. If the list of results is long, I’ll have paging script that will go to the next page of results but I’d like to be able to keep results of selected users on one page when advanced to the next page and keep adding them to a list before the button is clicked.