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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php