Here is the snippet of code that I have used to hide “undefined index error” warning messages in a PHP page:
ini_set('display_errors', 1);
ini_set('error_reporting', E_ERROR);
You can learn more about PHP errors and how to handle them at http://us.php.net/errorfunc.
