Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-12-2012, 12:50 AM   PM User | #1
mastershenron
New to the CF scene

 
Join Date: Apr 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
mastershenron is an unknown quantity at this point
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!
mastershenron is offline   Reply With Quote
Old 04-12-2012, 12:52 AM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,046
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
None of these examples work for you?
http://www.google.com/search?q=php+m...pt&btnG=Search



.
mlseim is online now   Reply With Quote
Old 04-12-2012, 01:05 AM   PM User | #3
mastershenron
New to the CF scene

 
Join Date: Apr 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
mastershenron is an unknown quantity at this point
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?
mastershenron is offline   Reply With Quote
Old 04-12-2012, 01:19 AM   PM User | #4
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,046
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
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.
mlseim is online now   Reply With Quote
Reply

Bookmarks

Tags
calendar, loops, php

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:38 AM.


Advertisement
Log in to turn off these ads.