Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member KingLionheart's Avatar
    Join Date
    Feb 2006
    Posts
    3
    Member #
    12570
    Hello everyone,

    I am currently making a "news editor" for my site so I can easily update the text on a certain page without having to play with the code. It's very simple at the moment.

    However I have 5 different types of news that need to be edited. Instead of clogging the page with 10 different text fields I want to be able to select which article can be edited.

    So here is what I thought. I make a drop down list (using <option>) and the different selected items output the different articles. This is kind of hard to explain for me so I will show you - http://cmg.gs17.com/admin/news_editor.php

    Basically, when a user selects "News Item #3" I would like to output the form code for that article.

    The problem being is I can't/don't know how to get variables from <option> tags.

    Any help would be great, and sorry if it's confusing.

    Thanks

  2.  

  3. #2
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    You need to put a value in the <option...>. Like this

    HTML Code:
    <select name="menu1" onChange="MM_jumpMenu('parent',this,0)" id="drop" name="ItemSelect">
    
    <option value="News Item #1">News Item #1</option>
    <option value="News Item #2">News Item #2</option>
    <option value="News Item #3">News Item #3</option>
    <option value="News Item #4">News Item #4</option>
    <option value="News Item #5">News Item #5</option>
    </select>
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:14 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com