RE: [PHP] Undefined Index Errors

2004-02-06 Thread Cameron B. Prince
> 1. put @ in front of each variable, e.g. > $adminID = @$_ENV['HTTP_REMOTE_USER']; This worked very nicely... Thank you! > > Hey guys, > > > > Here's a chunk of code from the top of a multi-function page I converted > > from Perl to PHP: > > > > $userid = $_REQUEST['USERID'];#

Re: [PHP] Undefined Index Errors

2004-02-06 Thread John W. Holmes
From: "Cameron B. Prince" <[EMAIL PROTECTED]> > I'm creating some strings from array elements obviously. The issue is, the > array elements don't always exist depending on which function you are > running. And when they don't, the server log is full of undefined index > errors. Is there a way I ca

Re: [PHP] Undefined Index Errors

2004-02-06 Thread Adam Bregenzer
On Fri, 2004-02-06 at 10:51, Cameron B. Prince wrote: > I'm creating some strings from array elements obviously. The issue is, the > array elements don't always exist depending on which function you are > running. And when they don't, the server log is full of undefined index > errors. Is there a w

Re: [PHP] Undefined Index Errors

2004-02-06 Thread Marek Kilimajer
You can either: 1. put @ in front of each variable, e.g. $adminID = @$_ENV['HTTP_REMOTE_USER']; 2. change your error reporting level: error_reporting(E_ALL ^ E_NOTICE); Cameron B. Prince wrote: Hey guys, Here's a chunk of code from the top of a multi-function page I converted fro

[PHP] Undefined Index Errors

2004-02-06 Thread Cameron B. Prince
Hey guys, Here's a chunk of code from the top of a multi-function page I converted from Perl to PHP: $userid = $_REQUEST['USERID'];# USERID = selected userid $dlist= $_REQUEST['DLIST']; # DLIST = indicates who to display $action = $_REQUEST['ACTION'];# ACTION = in