pixelmonkey
08-10-2005, 06:31 AM
<?php
$id = $PHP_GET['id];
if ($id ="main") {
echo "html or whatever goes here\n";
}
else {
echo "something other than the above html goes here\n";
}
?>
problem is in my previous statement, if $id is blank, then it auto assumes to include "main"... but if its =something then it takes on that value... but when i run this second piece of code, it replaces $id with "main" no matter what....
thoughts?
chris<pixelmonkey>:D
$id = $PHP_GET['id];
if ($id ="main") {
echo "html or whatever goes here\n";
}
else {
echo "something other than the above html goes here\n";
}
?>
problem is in my previous statement, if $id is blank, then it auto assumes to include "main"... but if its =something then it takes on that value... but when i run this second piece of code, it replaces $id with "main" no matter what....
thoughts?
chris<pixelmonkey>:D