1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. To combat forum spam, new accounts will need to make at least one (valid) post.
    Otherwise, we will periodically purge all users without posts or that haven't confirmed their account.

passing variables in command line

Discussion in 'General Support' started by theMezz, Jun 21, 2005.

Thread Status:
Not open for further replies.
  1. theMezz

    theMezz New Member

  2. Brian

    Brian EPC Developer Staff Member

    Yes. That should work.
     
  3. theMezz

    theMezz New Member

    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
     
  4. Brian

    Brian EPC Developer Staff Member

    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.
     
  5. theMezz

    theMezz New Member

Thread Status:
Not open for further replies.

Share This Page