|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
How do I repopulate a form with data...
How do I repopulate a form with data from a mysql db?
I am building a member site with extensive user profile information. When a user needs to edit their profile, I want to send the user to a form with all their information already filled out (checkboxes, radio buttons and text fields) with data from the db. Any suggestions?
__________________
$mybrain = "mush"; ------------------------------------------- http://www.loftsboston.com http://www.gregdawsondesign.com |
|
#2
|
|||
|
|||
|
Draw the info from the DB - set the starting values of the fields with what info is available for the user. Use conditionals for your radio buttons:
PHP Code:
__________________
~ Joe Penn We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set? Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you. |
|
#3
|
|||
|
|||
|
heres a very quick and untested example.
(Im asuming you have already have a database connection) PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > How do I repopulate a form with data... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|