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

passing variables in command line
Old 06-21-2005, 11:57 AM   #1
theMezz
Calendar User
 
theMezz is offline
Join Date: Jun 2005
Posts: 21
Default passing variables in command line

How can I pass a variable in the URL line?

as an example .. is there a way to show catagory 3 events .. something like this (which is wrong)

http://midstateems.org/calendar/test.php?showCat=3

what would the correct URL be ?

Is that possible???
 

Old 06-21-2005, 12:04 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Yes. That should work.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 06-21-2005, 12:15 PM   #3
theMezz
Calendar User
 
theMezz is offline
Join Date: Jun 2005
Posts: 21
Default

Cool.

I plan on using these links to our main page and the test now is working fine.

EMS
http://midstateems.org/calendar/test...&Submit=Filter

MADISON COUNTY
http://midstateems.org/calendar/test...&Submit=Filter

NATIONAL SAFETY COUNCIL
http://midstateems.org/calendar/test...&Submit=Filter

PUBLIC EDUCATION
http://midstateems.org/calendar/test...&Submit=Filter

REMSOC REMAC
http://midstateems.org/calendar/test...&Submit=Filter

One last question.

When someone gooes to PUBLIC EDUCATION events by clicking on PUBLIC EDUCATION
http://midstateems.org/calendar/test...&Submit=Filter is there a way to put some text on that page to let them know they are looking at PUBLIC EDUCATION.

Is there a way to have text tell the viewer what catagory he is looking at ???

THANKS
 

Old 06-21-2005, 12:25 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

There isn't an "automatic way" for this to happen. But it's easy to add on your own.

Just inset the code below where you want the filtered name to appear:

<?php if ($showCat=="X") echo "Filter: FilterName"; ?>
<?php if ($showCat=="X") echo "Filter: FilterName"; ?>
<?php if ($showCat=="X") echo "Filter: FilterName"; ?>

Just replace X and FilterName with the corresponding numbers and names.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 06-21-2005, 12:58 PM   #5
theMezz
Calendar User
 
theMezz is offline
Join Date: Jun 2005
Posts: 21
Default

thanks
it's really looking good now

http://midstateEMS.org/calendar/events.php

 
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
request: all command-line and other variables abcddurham General Support 2 08-05-2005 02:57 PM
Access to variables - Month, day, etc jwalton General Support 6 07-21-2005 03:15 PM
Overlapping variables causing errors to other PHP-based apps symlife General Support 8 05-19-2005 11:34 PM
passing the event date in a url stewart.campbell General Support 0 11-22-2004 04:55 PM
Resetting Variables vawxman99 General Support 1 09-23-2004 04:36 PM



All times are GMT -4. The time now is 05:46 AM.


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 |