Guest Posted December 5, 2004 Posted December 5, 2004 Guys, Hope you can help... In my Credit Card Module I've been trying to add the characters '--' as the first options in the drop down box that is drawn for the Start Date (month and year). I've identified the code that generates the drop box options in cc.php: for ($i=1; $i < 13; $i++) { $start_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000))); } Which works together with: array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_START, 'field' => tep_draw_pull_down_menu('cc_start_month', $start_month) . ' ' . tep_draw_pull_down_menu('cc_start_year', $start_year)), I tried to add the '--' myself in the following way (and many others) but can't seem to get it to work: for ($i=1; $i < 13; $i++) { $start_month[] = array('id' => '--', sprintf('%02d', $i), 'text' => '--', strftime('%B',mktime(0,0,0,$i,1,2000))); } All I get with the above is a parse error... :( Can anyone advise on how to add '--' to the start of the drop down box? Thanks in advance, Christian
Recommended Posts
Archived
This topic is now archived and is closed to further replies.