Need some work done? Post a Project Today
The first thing I need is a custom made datepicker for a flight search web form. It should be a "popup" datepicker which will pop up in the same window when clicking a calendar icon. Features should be f.eks ;
-when user picks the first date (departuredate) it should not be possible to pick a date before the first date on the second datepicker (returndate).
-It should not be possible to pick a date before the current date.
-Date format should be dd.mm.yyyy.
-The lenght of the trip (in days) should be able to be displayed in a seperate field. (Returndate minus departuredate.)
-Check that the input field is not empty, that the input field contain a valid date and that the dep.date is before the ret.date.
-The job also includes the html/css of the input field with a calendar image inside it, like this on this page; http://travel.kelkoo.co.uk/c-172201-flights.html, the datepicker on this page is also a good example of what I need.
The third thing I need is a function for checking the MySql database if the desired departurecity/arrivalcity excist in the database (after submitting the form). If yes, continue as normal. If no, give the user a choice to continue anyway or stop and fill out the form again. This function (or a seperate function) should also check that the input field is not empty, if it is empty, a alert should be displayed.
As a general rule the bidder should be open for small changes and be able to show some examples during the work. All styles which should be applied to the datepicker,input fields (colors etc) will be given. My site use php so feel free to use php if it is required.