The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP multiselect and page navigation
Good day
Need a little help or advice. How not to show long list of forum ids when changing pages? Because now when choose several forums and press page 2, the link is test.php?do=show&pp=20&page2&forum[]=91&forum[]=95&forum[]=99. Is there a way I can hide from url such string '&forum[]=91&forum[]=95&forum[]=99' and keep work page navigation? For one of my new pages I use Multiselect, i mean something like this in template Code:
<label for="select_forum">Choose forum</label> <select name="forum[]" id="select_forum" size="4" style="display:block" multiple="multiple"> <option value="0" $noforumselected>All forums</option> <option value="91">Test forum1 with forumid 91</option> <option value="95">Test forum2 with forumid 95</option> <option value="99">Test forum2 with forumid 99</option> </select> Code:
<form action="test.php?do=show" method="post"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="page" value="$pagenumber" /> <input type="hidden" name="pp" value="$perpage" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="do" value="viewthreads" /> <label for="select_forum">Choose forum</label> <select name="forum[]" id="select_forum" size="4" style="display:block" multiple="multiple"> <option value="0" $noforumselected>All forums</option> <option value="91">Test forum1 with forumid 91</option> <option value="95">Test forum2 with forumid 95</option> <option value="99">Test forum2 with forumid 99</option> </select> </form> In test.php i have required code for working page navigation PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|