RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 481 | Replies: 1
Reply
Join Date: Nov 2007
Posts: 35
Reputation: dottomm is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dottomm dottomm is offline Offline
Light Poster

'update' select menu

  #1  
Apr 2nd, 2008
Thank you in advance to anyone who can answer this for me.

In a registration form of mine the user selects the state they live in with a drop-down menu.
In the 'Update' form I would like their previous choice to automatically display its selection.

For example if my profile displays "Arkansas" my update form should be already display "Arkansas" in the the select menu, but I keep getting 'None Selected'?

I know the query is complete. I can make the data display correctly using
<input type='text' name ='teamstate' value ='{$row['teamstate']}'> but can't get the select tag to work.


Any help is greatly appreciated!
//snippet of my code

  1. <SELECT NAME='teamstate' SIZE='1' > selected>{$row['$teamstate']}>
  2. <OPTION VALUE =''>None selected</option>
  3. <OPTION VALUE='Alabama'>Alabama
  4. </OPTION>
  5. <OPTION VALUE='Alaska'>Alaska
  6. </OPTION>
  7. <OPTION VALUE='Arizona'>Arizona
  8. </OPTION>
  9. </SELECT>
Last edited by peter_budo : Apr 3rd, 2008 at 11:03 am. Reason: Keep It Organized - please use [code] tags
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation: nav33n has a spectacular aura about nav33n has a spectacular aura about 
Rep Power: 8
Solved Threads: 240
nav33n's Avatar
nav33n nav33n is offline Offline
Posting Sensei

Re: 'update' select menu

  #2  
Apr 2nd, 2008
http://www.daniweb.com/forums/thread116723.html same question. See the example.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

*PM asking for help will be ignored*
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:28 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC