Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dropdown Autopopulate

    Hi,

    How can I make my dropdown menu pull items from the database dynamically. Right now, everytime we add a new item into inventory, we have to manually add it to the menu. Is there a way to make it automatically pull new the new ones? Also, would there be a way to make the ones that have zero inventory not show up?

    Thanks in advance!!!
    Beth

    here is a sample of the code I'm working with:

    <form action="deluxeSFshop.aspx" name="searchbox" id="searchbox">
    <input type='hidden' name='sfid' value=87970 >
    <select name="c" id="c" onChange="jumpto(document.form1.jumpmenu.options[document.form1.jumpmenu.options.selectedIndex].value)">
    <option value="0" selected>pick boys theme</option>
    <option value="156240">animals</option>
    <option value="156248">backyardigans</option>
    <option value="156249">blues clues</option>
    <option value="156250">bob the builder</option>
    <option value="156261">buzz lightyear</option>
    <option value="156262">cars (disney)</option>
    <option value="156251">cars-trucks-planes</option>
    </select>
    </form>

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    There sure is, but it gets into server side languages so you'll want to post your question in the forum for the language you are using (ASP, PHP, etc).

  • #3
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks so much! I will do that.
    Beth


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •