let me restart. ahem.
this is my code
$name=trim($_REQUEST['name']);
if ($name==NULL)
{echo "hello noname ";}
else
{echo "hello $name ";}
my book is under the impression that this:
if (!empty($_REQUEST['name']))
{$name=$_REQUEST['name'];}
else
{$name="NULL";}
if ($name==NULL)
{echo "hello noname ";}
else
{echo "hello $name ";}
is the way to do the same thing. to me, the first code is shorter and more efficient. is my book now playing mind games with me?