<?
if(isset($_POST['submit']))
{
if(!$_POST['firstname'])
{
echo 'OMGZOR';
}
else
{
echo '-->';
echo $_POST['firstname'];
}
}
?>
You can edit it like this......
for explame:
1.php
<?php
$a = '';
if(!isset($a)) echo "aaa";
else echo "bbb";
// result : bbb
?>
2.php
<?php
if(!isset($a)) echo "aaa";
else echo "bbb";
// result : aaa
?>
if you give a value that maybe space the tag of 'isset' would return ture.
Pardon my poor e...............
(如果你给一个变量赋值即时这个值是空的,isset也会返回TRUE;只有在没有对变量赋值的情况下isset才会返回FALSE)