today i was working a on PHP script to handle an image with imagemagick and GD but i kept getting this errors

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in C:apachefriendsxampphtdocspagesadmin-pages.php on line 274

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in C:apachefriendsxampphtdocspagesadmin-pages.php on line 291
Error 207 on image.

so i what i did i changed these:

WROM:
$_FILES['uploaded']['tmp_name']


TO:
$_FILES['page_image']['tmp_name']

Hope this helps