搜一下吧 很简单的。 用$_FILES。

解决方案 »

  1.   

    http://cn.php.net/manual/zh/features.file-upload.php
      

  2.   

    <form enctype="multipart/form-data" name="insert" method="post" action="insert.php">
    <input type="file" name="document" value="" width="60">
    <input type="submit" value="提交</form>insert.php页面
    copy($document,"files/".$newsname.".".$fileType);
    if(copy)
    echo"附件发送成功";
      

  3.   

    恩,http://cn.php.net/manual/zh/features.file-upload.php
    里面讲的很详细了.