Jump to content

[SOLVED] If then


asloan

Recommended Posts

Ok...programming background but not in PHP

 

http://www.benedictinebusiness.org/index.php?option=com_content&view=article&id=19&Itemid=27

 

I'm trying to create an if statement to check if the option value if null - basically i'm trying to check if it's the homepage and if it's the homepage I would like a different background color to display then the interior pages.  But I first need to check if it's the homepage.  Soo far it always shows that options is null. 

 

if($_request['option'] == ''){

echo "hello andrea";

}

 

Any ideas?

 

Thank you,

Andrea

Link to comment
https://forums.phpfreaks.com/topic/139692-solved-if-then/
Share on other sites

Exactly! but it's not working.....soo maybe I'm missing it.....

 

www.benedictinebusiness.org  = homepage

 

http://www.benedictinebusiness.org/index.php?option=com_content&view=article&id=45&Itemid=60 = interior page

 

is there another way I can check to see if it's the homepage?

Link to comment
https://forums.phpfreaks.com/topic/139692-solved-if-then/#findComment-730908
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.