ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Working with Forms in PHP, Part 1
Subject:   better solution to test for form vars
Date:   2003-03-14 02:47:01
From:   mattrohrer
would involve using isset() or empty():


<?php
/* Assume a checkbox by the name 'mycheckbox' exists */
$checkbox = !empty($_GET['mycheckbox']);
?>


as the method shown in the article could trigger an E_NOTICE error


1 to 1 of 1
  1. better solution to test for form vars
    2004-01-24 19:09:26  ckt [View]

1 to 1 of 1