Re: New way to make select boxes auto select
| From: | Nathan Cook | Date: | Thu, 25 Jul 2002 18:52:10 +0000 |
| Subject: | Re: New way to make select boxes auto select | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109567@lists.php.net to get a copy of this message | ||
> // buildSelect -- return a Select box named $selectName based on key
value array $selectArray
> ...
> // $arr =
> array('MD'=>'selected','DC'=>'','VA'=>'');
How are you able to quickly and painlessly determine which key gets the
selected value, from form submission data, when building the initial array?