0

excuse me, do you know how to put a calendar in the form?
I try to put this code in my form but it has an error on line 2.
Anybody know? Please help me. Thank you

This is the calendar code :-

<?php
      $myCalendar = new tc_calendar("date5", true, false);
      $myCalendar->setIcon("calendar/images/iconCalendar.gif");
      $myCalendar->setDate(date('d'), date('m'), date('Y'));
      $myCalendar->setPath("calendar/");
      $myCalendar->setYearInterval(2000, 2015);
      $myCalendar->dateAllow('2008-05-13', '2015-03-01');
      $myCalendar->setDateFormat('j F Y');
      $myCalendar->setAlignment('left', 'bottom');
      $myCalendar->setSpecificDate(array("2011-04-01", "2011-04-04", "2011-12-25"), 0, 'year');
      $myCalendar->setSpecificDate(array("2011-04-10", "2011-04-14"), 0, 'month');
      $myCalendar->setSpecificDate(array("2011-06-01"), 0, '');
      $myCalendar->writeScript();
?>

Edited by JorgeM: updated title, corrected the word pun, to put

4
Contributors
7
Replies
33
Views
3 Years
Discussion Span
Last Post by diafol
0

You're using a calendar class - we don't know which one. Have you read the documentation? You do not state what the error is. Help us to help you.

0

That site does indeed look like the source of the class - and a nice datpicker it is too - much nicer looking than the jquery ui one.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.