View Single Post
Old January 3rd, 2007, 12:45 AM   #9 (permalink)
cowboy
Surpass Fan
Excelling Contributor
 
cowboy's Avatar
 
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
937 posts
Gave thanks: 2
Thanked 95 times
Quote:
Originally Posted by panache View Post
Code:
<?
 
$domain = $_GET['domain'];
 
if ($action = $_GET['domain']) {
 
echo "1";
 
}
 
else   { echo "0"; }
 
 
 
?>

like this?
No....

If you want to compare You need at least two things to compare.

Lets assume you have $action defined as the domain to compare (like from your database) and pass the variable in your example, then:
PHP Code:
<?
$action 
'www.themaxfiles.info';
 
$domain $_GET['domain'];
 
if (
$action == $domain) {
    echo 
"1";
} else {
    echo 
"0";
}
?>
__________________
Where would you be if you were at the highest court in the land (US)?
cowboy is offline   Reply With Quote
These users thank cowboy for this great post!
GamingHybrid (January 8th, 2007), panache (January 3rd, 2007)