I may be completely overdoing this, but could someone explain what have I done wrong?
jQuery:
onSelect: function(){
$.post("nav.php",function(){
$.datepicker.parseDate("Md");
});
},
php:
<?
$d=date("Md")
switch ($d) {
case Jan1:
header(Location: '/html/Jan/Jan1/Jan1.html')
case Jan2:
header(Location: '/html/Jan/Jan2/Jan2.html')
}
?>
As you might suspect, my goal is to get the datepicker to redirect to a page when a certain date is chosen, where I have set up a php switch to handle that (there will be a ton of pages, so I thought that would be pretty much the cleanest way).
Thanks to jedwards, he gave me the right push.
Here’s a bit modified code (the original wasn’t working).