Simple (but not too simple:) calendar in php
Moderator: General Moderators
Simple (but not too simple:) calendar in php
I woud like to have on my page simple calendar with two major properties:
1) it shoud allow quickly change view to some year or month AND
2) each date (number on calendar) should just pass me (to the next page) info about chosen date, so I could use this date for further processing (SQL...).
I do not need many of other functions (which I found during searching on web) which such a calendar could have - adding notes to particular date ...
maybe something like this
*************
<< < August > >>
M 1 2 3 4 5 6 7
T x x x x x x x
W x x x x x x x
....
*************
<< - go back one year
< - go back one month
Maybe for year there should be something faster - dropdown menu for year
Any other idea is welcome!
1) it shoud allow quickly change view to some year or month AND
2) each date (number on calendar) should just pass me (to the next page) info about chosen date, so I could use this date for further processing (SQL...).
I do not need many of other functions (which I found during searching on web) which such a calendar could have - adding notes to particular date ...
maybe something like this
*************
<< < August > >>
M 1 2 3 4 5 6 7
T x x x x x x x
W x x x x x x x
....
*************
<< - go back one year
< - go back one month
Maybe for year there should be something faster - dropdown menu for year
Any other idea is welcome!
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
I've done search by google and find lots of calendar which were not suitable for me. Anyway maybe I gave up to quickly and I must admit I haven't made search through this excelent forum.
I have one (dummy ) question concerning upper link http://www.dynamicdrive.com/dynamicinde ... lendar.htm for calendar, which is actualy javascript. It says that it generates hidden field with date value, but I do not know how I get to this field with php?
$_POST('orderdate') do not work!
and test.php

I have one (dummy ) question concerning upper link http://www.dynamicdrive.com/dynamicinde ... lendar.htm for calendar, which is actualy javascript. It says that it generates hidden field with date value, but I do not know how I get to this field with php?
$_POST('orderdate') do not work!
Code: Select all
<form action="test.php" method="post">
<script>DateInput('orderdate', true, 'DD-MON-YY')</script>
<input type="submit" name="submit" value="Pass date">
</form>Code: Select all
<?php
print $_POST('orderdate');
?>- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK