I am trying to put a pull down select box on a form and I need to use two different arrays to echo the values so the HTML code will look like:
<option value="01">January</option>
<option value="12">December</option>
This is what I have so far:
PHP Code:
<?php
$monthValue = array(1=>
"01",
"12");
$monthName = array(2=>
"January",
"December");
foreach ($monthValue as $monthValue => $monthList) {
echo "<option value=\"$monthList\"";
echo ">monthName</option>\n";
}
?>
How can I get the monthName in there?
Sam
;
Bookmarks