| | |
'update' select menu
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 53
Reputation:
Solved Threads: 0
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
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
php Syntax (Toggle Plain Text)
<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>
Last edited by peter_budo; Apr 3rd, 2008 at 11:03 am. Reason: Keep It Organized - please use [code] tags
http://www.daniweb.com/forums/thread116723.html same question. See the example.
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
![]() |
Similar Threads
- Help me please! (Viruses, Spyware and other Nasties)
- Aurora nuisance here too (Viruses, Spyware and other Nasties)
- Aurora Popups - Can't seem to get rid of them (Viruses, Spyware and other Nasties)
- VX2 spyware help!!! (Viruses, Spyware and other Nasties)
- more aurora probs (Viruses, Spyware and other Nasties)
- Aurora Popups - Can't seem to get rid of them (Viruses, Spyware and other Nasties)
- HELP with spy / ad ware (Viruses, Spyware and other Nasties)
- Problems Windows Update (Windows Software)
- IE6 SP2 Update (KB888240) (Web Browsers)
- Disable Automatic Windows Update (Windows tips 'n' tweaks)
Other Threads in the PHP Forum
- Previous Thread: Selecting file path from server in form
- Next Thread: Path to imagemagik
| Thread Tools | Search this Thread |
ajax apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error errors execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google href htaccess html image include insert ip javasciptvalidation javascript joomla keywords limit link login mail matching menu mlm multiple mysql number oop paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion recursive regex remote script search server sessions shot sms soap source space sql subscription syntax system table tag tutorial tutorials update upload url validator variable vbulletin video web xml youtube






