Quote:
Originally Posted by panache
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";
}
?>