Unfamiliar Errors

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
CoolAsCarlito
Forum Contributor
Posts: 192
Joined: Sat May 31, 2008 3:27 pm
Contact:

Unfamiliar Errors

Post 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
SBro
Forum Commoner
Posts: 98
Joined: Tue Sep 30, 2003 10:06 pm

Re: Unfamiliar Errors

Post 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.
Post Reply