sorry...i was in a hurry. it's actually this code that causes me problems:
$user_avatar_size = (!empty($_FILES['avatar']['size'])) ? $_FILES['avatar']['size'] : 0;
echo 'filesize:';
echo $_FILES['avatar']['size'];
echo '<br>user_avatar_size:';
die($user_avatar_size);
the output is this:
filesize:369
user_avatar_size:
for some reason the statement that assigns a value to $user_avatar_size is returning an empty string when i use the die() command. it was also turning up empty when i was using it in logical comparison code. when i echo it, it comes out just fine. i can also use floatval() on it and that seems to work too.