Menu
Hi,
I am working on this project where I want to have the values of a combo box dynamically created. I want the values in the combo to be either the previous year from now or the present year. what I have created is the following but unfortunately it’s not working…
[CODE]
$year1=date(“Y”-1);
$year2=date(“Y”);
$year3=date(“Y”+1);
<select name=”year” style=”font-family: Verdana; font-size: 10pt;”>
<option value=””></option>
<option value=”date(‘Y’)”>”$year1.” – “.$year2″</option>
<option value=”date(‘Y’+1)”>”$year2.” – “.$year3″</option>
</select>
any suggestion how can I make it work?
Thnx in advance.
Yona