Assign jQuery ui datepicker values to php variables

Hi everyone,

perhaps someone can help me with this…

I am using the jQuery UI datepicker on one of my pages and I’d like to assign the start date and end date to variables so that I can use them to query my database.

Please let me know if you have any idea how this can be done.

Thank you very much!

Hey RedBishop,

The Datepicker widget outputs the selected value to a form field, so you’d just submit the form normally (or via ajax) and your PHP script will receive the dates as GET or POST variables.

Hey fretburner,

how are you doing?

I did figure that out but I was thinking if it was possible to retrieve the values without submitting the form. But at this stage it isn’t really that important.

Thanks!

The form doesn’t need to be submitted - as long as javascript is enabled you can

(or via ajax)

The info has to get to the server somehow.