if (is_array($HTTP_POST_FILES)) { $attachment = $HTTP_POST_FILES['attachment']['tmp_name']; $attachment_name = $HTTP_POST_FILES['attachment']['name']; $attachment_size = $HTTP_POST_FILES['attachment']['size'];