Simple PHP Help

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

www.techdo.com

Established Member
Impact
0
i have this page check

Code:
if ($curPageName != "catalogo.php") {
echo ("<script type=\"text/javascript\" src=\"js/swfobject.js\"></script>");
echo ("\n");
echo ("<script type=\"text/javascript\" src=\"js/swfobject_modified.js\"></script>");
echo ("\n");
}

i need this instead:

if (page is not catalogo.php and is not contattaci.php)


how to write it in PHP?

thank You


.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Code:
if ($curPageName != 'catalogo.php' AND $curPageName != 'contattaci.php' ) {
echo ("<script type=\"text/javascript\" src=\"js/swfobject.js\"></script>");
echo ("\n");
echo ("<script type=\"text/javascript\" src=\"js/swfobject_modified.js\"></script>");
echo ("\n");
}

alternatively and better if you may add more pages at a later date:-

Code:
$page_array = array('catalogo.php','contattaci.php');
if (!in_array($curPageName, $page_array)) {
echo ("<script type=\"text/javascript\" src=\"js/swfobject.js\"></script>");
echo ("\n");
echo ("<script type=\"text/javascript\" src=\"js/swfobject_modified.js\"></script>");
echo ("\n");
}
 
0
Close
Yeah like Peter said. Just an inquiry about the language :P I am fluent in Italian and English.

ma sei italiano? solo mi chiedo te perche hai scritto il "conttataci" :P io sono americano ma parlo l'italiano :)

Ciao,
Dennis
 
0
Close
Thank you Peter,

Ciao Dennis
si quel Sito è per un cliente Italiano (e anch'io sono Italiano)

Buona giornata


Dario


.
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back