Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8729679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:52:37+00:00 2026-06-13T08:52:37+00:00

I may be completely overdoing this, but could someone explain what have I done

  • 0

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).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:52:38+00:00Added an answer on June 13, 2026 at 8:52 am

    Thanks to jedwards, he gave me the right push.

    Here’s a bit modified code (the original wasn’t working).

    onSelect: function(){
                var getd = $(this).datepicker("getDate");
                var datePart = $.datepicker.formatDate("M/Md/Md",getd);
                location.href = ("/html/" + datePart + ".html");
            },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I may be completely imagining this, but I could have sworn there was a
This question may seem completely stupid, but say i have a PHP page with
I may be completely off on this, but I swear I remember reading somewhere
I am completely new to iOS development so I may be doing this wrong
This may be a completely dumb question, but I've seen a couple examples declaring
I may have gone completely braindead today, but I'm having trouble copying my DB
This may just be a mac issue, but I have a page with an
I may just be passing data between views completely wrong here, so I am
I may be completely blind and stupid, but I cannot find any method generated
I've been struggling with this all morning and I may be completely on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.