Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Drop down box for customers
Old 02-25-2008, 10:50 AM   #1
rick@dothanbydesign.com
Calendar User
 
rick@dothanbydesign.com is offline
Join Date: Mar 2006
Posts: 27
Default Drop down box for customers

I need to create a dropdown box so customers can select the month the wish to view instead of using the arrows, I found a posting with this code to do so but not sure where to place it and if any code in place will conflict.

<?php
$mo
=$_REQUEST[mo
];
$yr=$_REQUEST[yr
];
if (!isset(
$mo) || $mo<1 || $mo>12 || !is_numeric($mo)) $mo = date("m",time() - date('Z') + ($gmt * 3600
));
if (!isset(
$yr) || $yr<1970 || $yr>2036 || !is_numeric($yr)) $yr = date("Y",time() - date('Z') + ($gmt * 3600
));
?>
<form name="form3" method="post" action="<?php echo $PHP_SELF ?>
">
<select name="mo" id="mo">
<?php
for ($N=1; $N<=12; $N
++) {
echo
"<option value='$N'"
;
if (
$N==$mo) echo " SELECTED"
;
echo
">$mth[$N]</option>"
;
}
?>
</select>
<select name="yr" id="yr">
<?php
for ($N=2000; $N<=2036; $N
++) {
echo
"<option"
;
if (
$N==$yr) echo " SELECTED"
;
echo
">$N</option>"
;
}
?>
</select>
<input type="submit" name="Submit" value="Go">
</form>
 

Old 02-25-2008, 12:46 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

You would place that code where you'd want the drop down to appear.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 02-25-2008, 01:02 PM   #3
rick@dothanbydesign.com
Calendar User
 
rick@dothanbydesign.com is offline
Join Date: Mar 2006
Posts: 27
Default

Thanks that was what I needed.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need to drop session WebGroupRob General Support 3 11-01-2007 12:58 PM
Popup box 'more' link babranooch General Support 1 02-02-2007 11:42 AM
filter drop box question Joonstar Customizations (Themes / Templates) 1 07-04-2006 09:35 AM
Question Concerning Details Box on the Add Events Page sanswarden Customizations (Themes / Templates) 4 12-23-2005 03:32 PM
Moving category drop down menu susanfw General Support 2 07-29-2005 09:55 AM



All times are GMT -4. The time now is 09:17 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |