On Tue, 2003-06-03 at 13:20, David Nicholson wrote:
> Hello,
> 
> This is a reply to an e-mail that you wrote on Tue, 3 Jun 2003 at 20:04,
> lines prefixed by '>' were originally written by you.
> > I've tried and here's the output:
> > Undefined index: input
> > if ($HTTP_GET_VARS['printout'] != "yeah") { include("header.php"); }
> 
> You have error reporting set to E_ALL, turn it down a bit.
> 
> More information at:
> http://uk2.php.net/error_reporting
> 
> David.

This is a good idea for a production machine, but for your development
environment, turning down error reporting is not a good idea. :) You 
will kill yourself trying to track down subtle errors when they aren't
displayed.

Try checking your variables before using them:

 if (isset($_GET['printout']) && $_GET['printout'] != 'yeah') { 
    // . . .
 }



Torben


-- 
 Torben Wilson <[EMAIL PROTECTED]>                        +1.604.709.0506
 http://www.thebuttlesschaps.com          http://www.inflatableeye.com
 http://www.hybrid17.com                  http://www.themainonmain.com
 -----==== Boycott Starbucks!  http://www.haidabuckscafe.com ====-----




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to