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 7412001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:28:24+00:00 2026-05-29T06:28:24+00:00

All, Say I have the following bit of code: select: function(start, end, allDay) {

  • 0

All,
Say I have the following bit of code:

select: function(start, end, allDay) {
    var title = prompt('Event Title:');
    if (title) {
        calendar.fullCalendar('renderEvent',
            {
                title: title,
                start: start,
                end: end,
                allDay: allDay
            },
            true // make the event "stick"
        );
        alert(start);
        jQuery.post("save_calendar_event.php", {
            title: title,
            start: start,
            end: end,
            allDay: allDay
            }, function(data){
            alert(data);
        });
    }
    calendar.fullCalendar('unselect');
}

Then I have a PHP page to accept the post values:

$title = $_POST['title'];
$start_time = $_POST['start'];
echo "The start time is: ".$start_time;

If I echo back the $title it works fine but if I do the $start_time it says the value isn’t there. When the alert is shown for the start on the jQuery side it has the data that I’m looking to pass. Why won’t it pass this variable to my PHP page?

EDIT: If I do the alert my alert shows: Sun Jan 29 2012 12:00:00 GMT-0600 (Central Standard Time)

Thanks!

  • 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-05-29T06:28:25+00:00Added an answer on May 29, 2026 at 6:28 am

    You have to force convert your start and end js date time object to string/timestamp first (before send to $.post).

    start.valueOf(); // for timestamp or shortcut +start
    start.toUTCString() // to date format e.g. Wed, 01 Feb 2012 03:04:15 GMT
    

    @Kai Qing I think jQuery already encoded parameters for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All, I have the following bit of code: function addPoints() { newpoints[0] = new
Lets say i have the following bit of code import java.sql.Connection; import java.sql.DriverManager; import
Let's say I have this: <div id=wrapper> <pre class=highlight> $(function(){ // hide all links
Well, the title say it all. I have a ruby script I want running
Say I have a list of all Projects , and that I group them
Say I have an interface IFoo and I want all subclasses of IFoo to
Say you have 2 database servers, one database is the 'master' database where all
Lets say I have several web sites on my web server, all as applications
Say I have a query that fetches [type][show_name]. For all [type]==5 records, I need
Say I have textboxes, dropdownlists and submit buttons. They are all inline-elements. Which means

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.