Here is the code for the entry of the date
echo "<input type=\"text\" name=\"weddingdate\" value=\"$weddingdate\">\n";
echo "<A HREF=\"#\" onClick=\"cal.select(document.forms['update_form'].weddingdate, 'anchor1', 'yyyy/MM/dd'); return false;\" NAME=\"anchor1\" ID=\"anchor1\"><img src=\"../images/b_calendar.png\" border=\"0\" /></A></td>\n";
|