Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Need help with adjusting dropdown search box!!
Old 08-26-2010, 03:13 PM Need help with adjusting dropdown search box!!
Junior Talker

Posts: 1
Name: Guess
Trades: 0
(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..
QuietMonkey is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-31-2010, 05:29 AM Re: Need help with adjusting dropdown search box!!
Extreme Talker

Posts: 149
Trades: 0
USE : <select id="reagentsSearchCategory" name="category" MULTIPLE size="4">

Size is the number of options to display in list
__________________
Free
Please login or register to view this content. Registration is FREE

Visit our
Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE
mimamo is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need help with adjusting dropdown search box!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10291 seconds with 12 queries