delphi+apache开发网站

解决方案 »

  1.   

    关键在于你的这个<input type="file" name="attachfile" size="20" value class="p1">应该放在表单之中,因为表单才是用户与服务器之间传送信息的桥梁。
    提交方法修改:
    <form action="ttl" method="post" enctype="multipart/form-data" name="form1">
    <input type="file" name="attachfile" size="20" value class="p1">
    <input type="submit" name="Submit" value="提交">
    </form>这时你点击提交按钮,你浏览的文件将以二进制的形式上传到服务器上,由天tt1来处理,tt1就是你用delphi设计的,
      

  2.   

    #########关键在于你的这个<input type="file" name="attachfile" size="20" value class="p1">应该放在表单之中###########
    当然放在form里面的了,我的意思是如何实现文件上传,其他功能都实现了。