Re: User's editting profiles

From: Date: Sat, 22 Sep 2001 19:54:47 +0000
Subject: Re: User's editting profiles
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68359@lists.php.net to get a copy of this message
15 fields is not a lot, especially if you intend to handle some as checkboxes, some as text, etc... If you actually had a *LOT* of fields, you could look at storing some kind of info about them in another table, and automating the output. Another option would be to use oohforms (see PHPlib) or somesuch... But for a couple pages of forms with 15 fields, you're really not gonna save any time/effort to do all that... You may wish to create an "editing" page which displays their current settings -- Just select from the database and print out the VALUE="$foo" as part of the HTML. Sample code on every code archive you can find. http://php.net/links.php -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Kath <kath@kathweb.net> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Saturday, September 22, 2001 9:43 AM Subject: User's editting profiles I have some user profiles and I'd like them to be able to update them as they see fit (Change their email, password etc etc). However, their options are rather long and instead of having these turkeys have to type in stuff into 80000 form fields, I'd like to display the current data in those fields and then let them just change what needs to be done. What is the best way to do this? My only problem is propogating all their data through the HTML form (I can manage doing one or two fields, but doing 15 is rather not fun) from the database (two different tables too, including checkboxes). - k

« previous php.general (#68359) next »