SQL PHP HTML ASP JavaScript articles and free scripts to download
PHP Calendar

Entering date value of a calendar to a text field ( date picker )

We can ask our visitors to enter a date in any text field. But here it is always better to show one calendar and ask the visitor to select a date from the calendar. This date picker script will help visitors, as they can browse the calendar and decide their date by clicking it. This will also ensure that the date is automatically entered in acceptable format. You can use this in many applications where date is to be entered by the visitors. In a hotel booking form the date of arrival and departure can be entered by using calendars.

You can see demo of this script and download the code here.

Here there are three parts of the tutorial. The first part is on how to open a new window by clicking a link, and then we will learn how to display the calendar in the new window opened. In the third part we will learn how to transfer the selected date to parent window and close the calendar window.

This tutorial is noting but integration of three tutorials so it is advisable to first learn the three tutorials.

Opening a child window from parent window.
Developing a calendar script
Passing value of selected date from child calendar window to parent page.


Here is the demo

Enter you date Click here to open the calendar window

Download the two php files used for this demo here.

Be the first to post comment on this article :


Google+
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked



Join Our Email List
Email:  
For Email Newsletters you can trust
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2014 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer