Using datepicker to send date range to url

Using datepicker to send date range to url

Greetings,
I am using the jQuery UI datepicker range ( http://jqueryui.com/datepicker/#date-range ) on our company website.  We are in the hotel business, and need customers to be able to select "Checkin" and "Checkout" dates, then submit that information to a specific url by clicking a "Book Now" link.

I've used the code from the above site, and added the following at the end:

My question is, how do I call up the "from" and "to" dates that the user selects to use in the url at xxxxx and yyyyy?

Thanks in advance!

N