how do you write if the url containes DESC?
Posted: Thu Mar 25, 2004 12:23 pm
how would the that if statement
Code: Select all
if ($_SERVER['HTTP_REFERER'] == "%DESC%");A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
if ($_SERVER['HTTP_REFERER'] == "%DESC%");Code: Select all
<?php
if (strpos($_SERVER['HTTP_REFERER'], 'DESC') !== false)
{
echo "not false";
}
else
{
echo "is false";
}
?>