hie there... i have this PHP code below. Instead of prompting the error message in next page, i want to prompt in an error box. how do i do this? Thanks.
PHP Code:
if($imageinfo['mime'] != 'image/gif' && $imageinfo['mime'] != 'image/jpeg')
{
echo "Sorry, we only allow uploading GIF images";
exit;
}