Re: automatically selecting HTML drop down
| From: | php3 at developersdesk dot com | Date: | Mon, 14 Aug 2000 07:35:00 +0000 |
| Subject: | Re: automatically selecting HTML drop down | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11565@lists.php.net to get a copy of this message | ||
Addressed to: "Dustin Leggans" <dustinl@rocketmail.com>
php-general@lists.php.net
** Reply to note from "Dustin Leggans" <dustinl@rocketmail.com> Mon, 14 Aug 2000
01:53:51 -0400
>
> Hello..
>
> I am creating a phone book database... I have an "edit" page where
> users can come in and change their information, certain fields, like
> STATE, have concrete values that will not vary from user to user
> therefore I use a drop down list. When this edit page comes up, I
> would like the STATE dropdown to default to the STATE value that the
> user has. For example, if a user from California logs in to change
> some information, the drop-down state list should default to the CA
> value.
>
> Any ideas? Thanks, dustin
I just posted code for a function that creates a select box that selects
the current value. You can get it from the archives at:
http://www.phpbuilder.com/mail/php-general/2000081/2204.php
Rick Widmer
Internet Marketing Specialists
www.developersdesk.com