Update attach.php