Home › Forums › JavaScript › Dynamically change post query › Re: Dynamically change post query
January 5, 2011 at 4:44 pm
#67362
Bob
Member
What if you make the value of monthnum a variable, which is taken from a dropdown list or something like that?
Like this:
$monthvar = $_POST["month"];
query_posts("cat=3&monthnum=$monthvar&year=2011");
?>
I don’t really understand what you want though so I might be wrong here.