(See code below) Hello, I'm not too familiar with PHP and need some help with editing a dropdown search box on a website. A guy who is now gone created the code and for some reason made it so that users could only choose between four options verses the entire seven we have when doing a product search. I need the search box to be able to allow users to have the option to choose between all seven choices.
Here is the code as he has it.
HTML Code:
<select id="reagentsSearchCategory" name="category">
<option selected="selected" <?php if($searchCategory=="All"){ ?>selected="selected"<?php }; ?>">All</option>
<option <?php if($searchCategory=="Monoclonal Antibodies"){ ?>selected="selected"<?php }; ?>">Monoclonal Antibodies</option>
<option <?php if($searchCategory=="Polyclonal Antibodies"){ ?>selected="selected"<?php }; ?>">Polyclonal Antibodies</option>
<option <?php if($searchCategory=="Antigens"){ ?>selected="selected"<?php }; ?>">Antigens</option>
<option <?php if($searchCategory=="Gold Conjugates"){ ?>selected="selected"<?php }; ?>">Gold Conjugates</option>
<option <?php if($searchCategory=="Purified IgG"){ ?>selected="selected"<?php }; ?>">Purified IgG</option>
<option <?php if($searchCategory=="Misc."){ ?>selected="selected"<?php }; ?>">Misc.</option>
</select>
<button id="reagentsSearchButton" type="submit">Search</button>
</form>
The problem is on the website ONLY allows users to choose "all, polyclonal antibodies, gold conjugates, and misc." I need it to all users to be able to choose between all of them (i.e "all, monoclonal antibodies, polyclonal antibodies, antigens, gold conjugates, purified IgG, and misc."
I cannot tell what is causing this and need help on knowing what to do to allow all the options to be displayed. Thanks for anyones help in advance!
Last edited by chrishirst; 08-28-2010 at 02:53 PM..
|