PDA

View Full Version : if page=search.php


bo0oost
01-27-2007, 07:10 PM
How can I build a PHP If/Then to determine the page it's looking at.

So basically... if the page is search.php then do some stuff.

How would I build this if/then?

Thanks!

Would I do something like:

if $_SERVER["PHP_SELF"] = "search.php" {

?

or maybe it would be better to do a <if condition="search"> is that possible?

Adrian Schneider
01-27-2007, 07:44 PM
if (THIS_SCRIPT == 'search')