Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have this selectbox:
HTML
<select id="filters" class="filter" name="filter[]" multiple="multiple">
 <option value="1">1</option>
 <option value="2">2</option>
 <option value="3">3</option>
 <option value="4">4</option>
 <option value="5">5</option>
 <option value="6">6</option>
 <option value="7">7</option>
 <option value="8">8</option>
 <option value="9">9</option>
</select>

so you can check for example 1,5,9 and if you refresh the page i want that those numbers are still checked. It is in a php file

What I have tried:

If tried to save it in a session but i don't know how.
Posted
Updated 14-Feb-17 3:52am

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900