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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Create a calendar with php

    Trying to help my friend create a calendar. It would be able to display the calendar for any month from January starting from the 1970s and into December of 2040. I have had a little success creating the calendar (i'm somewhat new to php) and i wanted to let the user choose the month and year from drop down boxes along with a submit button. Ideally, after they would submit, the program would then display the calendar for that selected month and year. I've really been stumped and could use some example code to go off of or possibly just some code to use.

    Anything helps, i really appreciate it!

  • #2
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,389
    Thanks
    8
    Thanked 1,077 Times in 1,068 Posts
    None of these examples work for you?
    http://www.google.com/search?q=php+m...pt&btnG=Search



    .

  • #3
    New to the CF scene
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A little, but even when i try the sample code they have, it says

    Undefined index: month in C:\xampp\htdocs\project 2\newfile.php on line 2

    Undefined index: year in C:\xampp\htdocs\project 2\newfile.php on line 3

    shouldnt it display the current year and month?

  • #4
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,389
    Thanks
    8
    Thanked 1,077 Times in 1,068 Posts
    Those are "notices" or "warnings" ... they are not fatal.

    For now, while you are scripting, you can suppress those error messages.

    That would be a configuration setting for your server's PHP.
    You're running this on your own server ... not much I can help you with there.


  •  

    Tags for this Thread

    Posting Permissions

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