Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 15th, 2003, 06:30 PM
redneck_kiwi redneck_kiwi is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Talladega, AL 35160
Posts: 24 redneck_kiwi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Form Field Selection - Building drop down list

I am building the data input form for an application with several fields that have a defined selection. For these, I am using code similar to the following:

<select name="field name">
<option value="Default Value">Default Value Here</option>
<option value="2nd Value">2nd Value</option>
<option value="3rd Value">3rd Value</option>
</select>

this works well except for a single field I need to "populate". What I would like to do is have the users populate this field...if the data entered by the user is not in the option lists, then have the code add it for the next time.

My question is can this be done and is so, how?

TIA

rk

Reply With Quote
  #2  
Old December 15th, 2003, 06:42 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: Form Field Selection - Building drop down list

You need to create a table in the db that you can use to dynamically generate your select box. Then when a user types a new selection into the form, you can check that table to see if the selection exists. if it does not, add it to the table. The only con to this approach would be that if the user typed in the same option, but mispelled it, then you would get duplicate entries in the selection. Don't know if I have been clear, but if you have any questions, let me know.

Reply With Quote
  #3  
Old December 15th, 2003, 07:01 PM
redneck_kiwi redneck_kiwi is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Talladega, AL 35160
Posts: 24 redneck_kiwi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Form Field Selection - Building drop down list

That would definately be one way to do this!

Basically this is a country list and will be populated with the countries we have done business with. I am using a VALUE="USA" to give us a default of the US and will see how well the other countries get added.

Thanks for the suggestion though!

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Form Field Selection - Building drop down list


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway