At 11:54 AM 1/6/03 -0600, Steven Kallstrom wrote:
Alabama
Alaska
Arizona
.
$stateselected['$state'] is an array that stores the state that was
selected on the prior form. is there an easier way, to have a default
state picked out of this drop do
What I would do, and this is one of those "write it once, use it a 1000
times" things, is store all your states in an array.
'Alabama',
'AK' => 'Alaska',
'AZ' => 'Arizona'
);
?>
Then, you can loop through that array to build your form element:
';
foreach($sta
I have a drop down list with all fifty states. very common. I conjured
up a way to store the value when you return to edit the form, but there
most be an easier way either in html, or in php. Here is what I
currently have.
Alabama
Alaska
Arizona
3 matches
Mail list logo