Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="top">
- <form id="filter" method="get">
- <select class="select" id="section" onchange="window.location.href=this.options[this.selectedIndex].value">
- <option> </option>
- <?
- $sqlFilter = "SELECT `text`,`id` FROM dealSectionParent";
- $sqlFilter = mysql_query($sqlFilter);
- while ($rowFilter = mysql_fetch_object($sqlFilter)) {
- if($rowFilter->id == $_GET['sectionParent'] ){
- ?>
- <option selected value="<?echo $siteurl ?>/templates/deals/deals.php?sectionParent=
- <? echo $rowFilter->id; ?>" checked>
- <? echo $rowFilter->text;?></option>
- <?
- }else{
- ?>
- <option value="<?echo $siteurl ?>/templates/deals/deals.php?sectionParent=
- <? echo $rowFilter->id; ?>">
- <? echo $rowFilter->text;?></option>
- <?
- }
- };
- ?>
- </select>
- </form>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment