Sorry guys... This should be a really easy one... Ive just drawn a mental blank... 🙁
i want the user to select both month and year from seperate drop down boxes, and the resulting output simply saved in a variable $selectedmy to be used as part of a mysql query.. (which works fine)..
I used to do it using forms, but there must be a simpler way under php now ?
<form action="<?=$PHP_SELF?>" method="POST">
<p>Select Month for report:<select name="selectedm">
<option value="01">January</option>
<option value="02">February</option>
<option value="03">March</option>
<option value="04">April</option>
<option value="05">May</option>
<option value="06">June</option>
<option value="07">July</option>
<option value="08">August</option>
<option value="09">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
<p>Select Year for report:<select name="selectedy">
<option value="2002">2002</option>
<option value="2003">2003</option>
</select>
<p><input type="submit" name="submitquery" value="Submit Query (Alt-S)" accesskey="S" /></p>
</form>
basically i need the combined output of 'selectedy''selectedm' eg. result would be $selectedmy="200211"
thoughts ?