Alzheimers,
So this is the code that I could not pass the date back.
Code:
if (this.selectHandler) {
this.selectHandler(this, this.date.print(this.dateFormat)) // Prints the selected date to the screen.
var dateSelected = this.selectHandler(this, this.date.print(this.dateFormat))
location.href="getSelectedDate.php?selectedDate="+dateSelected // This is where I pass to the php script
}
What I changed from that code was I remove the "this.selectHandler(this, " from this:
Code:
var dateSelected = this.selectHandler(this, this.date.print(this.dateFormat))
Here is what it looks like after I removed that piece of code.
Code:
var dateSelected = this.date.print(this.dateFormat);
Then you can use the "location.href " to pass it to a php file like I did above.
Bookmarks