I recently started coding online and i have the weirdest response, my code is:<snip>
<?php
include 'function.inc';
echo "$id<br>";
print (gettype($id));
if ($id = "add" )
{
echo "is add";
exit;
}
'=' sets value. '==' checks equality.
http://www.php.net/manual/en/language.operators.comparison.php
-- By-Tor.com It's all about the Rush http://www.by-tor.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php