Hi I am a newbe to php and I need to have the Dates on the list passed on to the two input values (Example Datefrom-Date list option - Dateto-Date list option) I am clueless on how to do this Thanks
see code below
<form id="form3" name="form3" action="">
<select name="SelectDate" id="SelectDate">
<option>Current Year</option>
<option>Current Year-to-date</option>
<option>Yesterday</option>
<option>Last Week</option>
<option>Last Week-to-date</option>
<option>Last Month</option>
<option>Last Month-to-date</option>
<option>Last Year</option>
<option>Last Year-to-date</option>
<option>Today</option>
<option>Current Month</option>
<option>Current Quarter</option>
<option>Current Quarter-to-date</option>
<option>All Dates</option>
</select>
from
<input name="Datefrom" type="text" id="Datefrom" value="<?php echo date("Y-01-01"); ?>" size="10" />
to
<input name="Dateto" type="text" id="Dateto" value="<?php echo date("Y-12-31"); ?>" size="10" />
<input type="submit" name="button2" id="button2" value="New date" />
</form>