Results 1 to 2 of 2

Thread: multi-select in template file

  1. #1
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default multi-select in template file

    I am building a template file, for the creation of a new file to be placed into the database, however this is going to always be under 1 category, even though there are many categories in the database. This is all database driven, so I was wondering if there is any way of figuring out how to "auto-select" the category when its given from the database?

    Code:
    	  <label for="p_cat_id">Category:</label>
          <select name="p_cat_id[]" id="f_cat_id" multiple="multiple" class="required" size="10" style="width: 250px;">
            {options:categories,F_CAT_ID}
          </select>
    that loads in all of the categories and properly indexes them accordingly to their "parent category"

  2. #2
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    We need more detail

    What does a possible output look like?

    If you could output valid JS that would be easy to sort, So until then its a database problem.



    Maybe PM a Mod and get them to move it to another forum?


Bookmarks

Posting Permissions

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