| Posted by Marcin Dobrucki on 08/18/05 10:38 
Chris Portka wrote:
 > <?php
 > if ($_GET["FirstName"] == "")
 > {
 >   echo "No user input";
 > }
 > ?>
 
 how about:
 
 if (isset($_GET['FirstName']) && empty($_GET['FirstName'])) {
 echo "yes, it's empty";
 }
 
 Specifically the "empty" function will be useful here, but sometimes its
 good to check that the variable actually exists.
 
 /Marcin
  Navigation: [Reply to this message] |