Page 1 of 1

Unfamiliar Errors

Posted: Thu Oct 16, 2008 6:31 pm
by CoolAsCarlito
Can someone explain to me what the following error messages me? I get these when I open a script I wrote:

Notice: Undefined index: uploadedfile in /home/content/y/a/n/yankeefaninkc/html/backstage/addshowname.php on line 18

Notice: Undefined index: action in /home/content/y/a/n/yankeefaninkc/html/backstage/addshowname.php on line 98

Notice: Undefined index: action in /home/content/y/a/n/yankeefaninkc/html/backstage/addshowname.php on line 126

Re: Unfamiliar Errors

Posted: Thu Oct 16, 2008 7:27 pm
by SBro
Typically they would be when you are referencing elements of an array that don't exist, i.e.

Code: Select all

 
$arr = array(
    'one' => 'abc',
    'two' => 'def'
);
 
print $arr['uploadedfile'] . ' - ' . $arr['action'];
 
In the above example, the line with the print in it would throw an error because the array elements I'm trying to print don't exist.