Submit button & functions?
Posted: Mon May 16, 2005 6:22 pm
I've created a functions that creates a Month dropdown that is pre-populated with the current month + x. Something like:
At the moment I have 3 functions for month day & year. I concatinate the results into the date format I want. My problem is how to use this date as input to a submit button to another page. Or am I going up a tree using this approach?
Jcart | Please use
Code: Select all
function MonthDropDown($size=90,$default="DropDate")
{ $skip=1;
echo "<select name=$default STYLE=\"font-family: monospace;\">\n";
for ($i = 0; $i <= $size; $i++)
{ $theMonth = mktime (0,0,0,date("m") ,date("d")+$i ,date("Y"));
$option=date("D M j, Y",$theday);
...
}
echo "</select>\n";
return date("m/d/Y",$theMonth);
}Jcart | Please use
Code: Select all
tags when posting php code. [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]