Re: OK guys, thank you so far

From: Date: Tue, 03 Jun 2003 20:38:55 +0000
Subject: Re: OK guys, thank you so far
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-150066@lists.php.net to get a copy of this message
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 <torben@php.net> +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 ====-----

« previous php.general (#150066) next »