Thanks for the reply.
I replaced:
PHP Code:
for ($i=1; $i<13; $i++) {
$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));
}
with:
PHP Code:
$expires_month = array(
0 => 'Select Month',
1 => '01-January',
2 => '02-February',
3 => '03-March',
4 => '04-April',
5 => '05-May',
6 => '06-June',
7 => '07-July',
8 => '08-August',
9 => '09-September',
10 => '10-October',
11 => '11-November',
12 => '12-December',
);
$select = '<select name="expires_month" id="expires_month">'."\r\n";
foreach($expires_month as $key => $value){
$select .= "\t".'<option value="'.$key.'">' . $value.'</option>'."\r\n";
}
$select .= '</select>';
But I only get the first letter of the array in the drop down menu.
It's getting late here now and but I'll need to go back and study up on my php coding to see where I screwed up..
Cheers!
Br
Bookmarks