PDA

View Full Version : Xin's Popup Calendar



Donovan
03-30-2009, 06:33 PM
I have used this in the past and it works great. I know there are newer versions. The version I have says:

Last Modified: 03-Oct-2003

In the pages I used it in it was only updating a single field. Can I use this in an array?

If I had several fields all for birthday[]. This is for a registration page for a swim team. If they have several kids they are registering at the same time I want to be able to enter in dates for each record.



echo"<form name='register' action='modules.php?name=$module_name' method='post'>";

...


. "<td>Birthday<INPUT TYPE=\"text\" NAME=\"birthday[]\" size=\"20\">"
. "<a href=\"javascript:showCal('AddBirthday');\"><img src=\"modules/$module_name/images/calbtn.gif\" title=\"Select Date\" alt=\"Select Date\" align=\"absmiddle\"></a></td>"

My cal_confg2.js file says:


addCalendar("AddBirthday", "Select Date", "birthday", "register");

So far I can't get it to work. This is one of the easiest javascript popup calendars available.