PDA

View Full Version : Help with Dropdowns



carlosbotero
05-03-2007, 03:40 PM
Hi,
I have a simple date range drop down menu that lets the user select beginning month date and year and ending month day and year, but i need to restrict the beginning date to stop at current date. I also need the drop downs to display the selected values once the user clicks the submit button, does anyone have an idea on how to fix this? thank you

this is the code i have for the drop down range:

<form id="selectdate" name="selectdate" method="get" action="">
<label>Start Date
<select name="fmonth" name="fmonth" style="width: 50px;">
<option value="1">1</option>
<option value="2">2</option>
</select>
</label>
<select name="fday" style="width: 50px;">
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
</select>
<select name="fyear" style="width: 70px;">
<option>2003</option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
</select>
<label>End Date
<select name="lmonth" style="width: 50px;">
<option>01</option>
<option>02</option>
</select>
</label>
<select name="lday" style="width: 50px;">
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
</select>
<select name="lyear" style="width: 70px;">
<option>2003</option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
</select>
<label>
<input type="submit" name="Submit" value="Go" />
</label>

</form>