View Full Version : passing variables in command line
theMezz
06-21-2005, 11:57 AM
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???
Brian
06-21-2005, 12:04 PM
Yes. That should work.
theMezz
06-21-2005, 12:15 PM
Cool.
I plan on using these links to our main page and the test now is working fine.
EMS
http://midstateems.org/calendar/test.php?showCat=9&Submit=Filter
MADISON COUNTY
http://midstateems.org/calendar/test.php?showCat=7&Submit=Filter
NATIONAL SAFETY COUNCIL
http://midstateems.org/calendar/test.php?showCat=11&Submit=Filter
PUBLIC EDUCATION
http://midstateems.org/calendar/test.php?showCat=10&Submit=Filter
REMSOC REMAC
http://midstateems.org/calendar/test.php?showCat=8&Submit=Filter
One last question.
When someone gooes to PUBLIC EDUCATION events by clicking on PUBLIC EDUCATION
http://midstateems.org/calendar/test.php?showCat=10&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
Brian
06-21-2005, 12:25 PM
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.
theMezz
06-21-2005, 12:58 PM
thanks
it's really looking good now
http://midstateEMS.org/calendar/events.php
:banana:
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.