I had a situation that I think was similar to this. 
It was a page that allowed different people to add
links to a page.  The links were categorized.  When
someone added a new link, they could choose an
existing category from a drop-down list, or enter a
new category name in a text input box.

Rather than hard-code the drop-down box, I used a
SELECT query to get all of the distinct category names
from the table.  Then, I used that array to populate
the drop-down box.  Radio buttons for "Use Existing
Category" and "Add New Category" were my key to
telling which one to use.

After that, anytime new categories were added, the
form would change itself because it would always
populate the drop-down form based on whatever
categories existed in the table at the time.


Michael Roush
[EMAIL PROTECTED]

"The power of the Web is in its universality. Access by everyone regardless of 
disability is an essential aspect." 
-- Tim Berners-Lee, W3C Director and inventor of the World Wide Web


      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Reply via email to