mardi 17 mars 2015

PHP: If host =url, add style




$host = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if($host == 'http://ift.tt/1BRvtIs'. 'http://ift.tt/1AC4n43')
{
$h1>addStyle('display:', 'none;');
}



I need to hide when the url is /home/ or /contact/


This code doesn't work..


Aucun commentaire:

Enregistrer un commentaire