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
Unfamiliar Errors
Moderator: General Moderators
-
CoolAsCarlito
- Forum Contributor
- Posts: 192
- Joined: Sat May 31, 2008 3:27 pm
- Contact:
Re: Unfamiliar Errors
Typically they would be when you are referencing elements of an array that don't exist, i.e.
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.
Code: Select all
$arr = array(
'one' => 'abc',
'two' => 'def'
);
print $arr['uploadedfile'] . ' - ' . $arr['action'];