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 6 of 6
  1. #1
    Regular Coder
    Join Date
    Dec 2009
    Posts
    243
    Thanks
    7
    Thanked 0 Times in 0 Posts

    How Do I Tell A Form To Do This?

    Alright guys

    I am wondering I having this drop down menu box which at the moment only allows me to select one category.. I am wondering if it is possible to all me to choose more than one category? If show how do I tell it to do that please??

  • #2
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Do you mean a select box?

    You use the option element in a select parent, like so:

    Code:
    <label for="car">Car</label>
    <select name="car" id="car">
      <option>Volvo</option>
      <option>Saab</option>
      <option>Mercedes</option>
      <option>Audi</option>
    </select>

  • #3
    Regular Coder
    Join Date
    Dec 2009
    Posts
    243
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Apostropartheid View Post
    Do you mean a select box?

    You use the option element in a select parent, like so:

    Code:
    <label for="car">Car</label>
    <select name="car" id="car">
      <option>Volvo</option>
      <option>Saab</option>
      <option>Mercedes</option>
      <option>Audi</option>
    </select>

    Alright Apostropartheid

    Sorry I forget to mention a few key points

    1) The box is called an Drop Down Box....

    This is the html code for that part
    [code]
    <select name="category" class="inputbox" id="category">
    <option value=0>Select</option>

    {{category}}
    </select>

    2) The categories are automatically pulled from a database....

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Post this in the forum relevant to the programming language you're using.

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    I am wondering if it is possible to all me to choose more than one category?
    Use the attribute multiple, see http://htmldog.com/reference/htmltags/select/
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    Regular Coder
    Join Date
    Dec 2009
    Posts
    243
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by abduraooft View Post
    Use the attribute multiple, see http://htmldog.com/reference/htmltags/select/
    Alright Abduraooft

    I have add the multiple feature to the add product and edit product html pages of the script.. But for some reason still only one category is stored...

    For the product count on the marketplace.php there should be 1 showing in the december 2008, 2 showing in Master Resale Rights, and 2 showing in Private Label Right..

    Do I have to do something with the database???


  •  

    Posting Permissions

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