Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2004
    Posts
    96
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Calendar using PHP?

    Hi guys,

    Is it possible to make a calendar in PHP rather than hard-coding it in HTML? For example, I'm looking to make one for June 2007 and on each line I'd like to have the day, the date and then a checkbox containing the date, so for example:

    <input type="checkbox" name="date" value="01062007" /> Tues. 1st


    Is it possible to do this dynamically using PHP?

    Thanks in advance

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Yes.

    Take a look at the examples on date() There's one in there that does a basic calendar


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •