Re: Modifying data in forms with values

From: Date: Tue, 13 Sep 2005 17:03:16 +0000
Subject: Re: Modifying data in forms with values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-222272@lists.php.net to get a copy of this message
Robert, The Lampshade framework (and I'm sure others, too) handles pretty much all of the form controls for you. There' also a specific country() function used to make a drop-down of countries. Using Lampshade, you would only need one line of code in your form: dropdownBox('country', country(), $myrow['country'], 'Country'); The first parameter is the name of the field in the form. The second provides the list of items to display in the drop-down box. The third is the present value of the box (so it handles the if statements you were talking about), and the fourth is the label that shows up on the form on the user's screen. You should try it out, and I'd be happy to help you get set up. http://www.thinkcomputer.com/software/lampshade/index.html Aaron Aaron Greenspan President & CEO Think Computer Corporation http://www.thinkcomputer.com

« previous php.general (#222272) next »