954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

'update' select menu

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
but can't get the select tag to work.


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

<SELECT NAME='teamstate' SIZE='1' > selected>{$row['$teamstate']}>
			<OPTION VALUE =''>None selected</option>
			<OPTION VALUE='Alabama'>Alabama
			</OPTION>
			<OPTION VALUE='Alaska'>Alaska
			</OPTION>
			<OPTION VALUE='Arizona'>Arizona
			</OPTION>
</SELECT>
dottomm
Junior Poster in Training
89 posts since Nov 2007
Reputation Points: 9
Solved Threads: 5
 
nav33n
Purple hazed!
Moderator
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You