我用winsock控件做了一个提交程序.
ASP代码为:
Response.write("Name=" &Request.form("name"))
为什么返回的数据一次比一次多!
比如:
第一次提交返回
Name=hello第二次提交返回
Name=hello,hello第三次提交返回
Name=hello,hello,hello怎么会产生这种现象,请大家解释一下吧!谢谢

解决方案 »

  1.   

    POST http://127.0.0.1:7533/PostTest.asp HTTP/1.1
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    Accept -Language: zh -cn
    Content-Type: application/x-www-form-urlencoded
    Accept -Encoding: gzip , deflate
    User-Agent: Thanks4Help .http
    Host: 127.0.0.1:7533
    Content-Length: 140
    Connection: Keep -Alive
    cache -Control: no -cacheName=%77%77%77%2E%77%75%68%61%6E%2E%6E%65%74%2E%63%6E&Email=%54%65%78%74%32&Subject=%54%65%78%74%34&Memo=%54%65%78%74%35&SEND=%CC%E1%BD%BB%C1%F4%D1%D4以上就是提交的字符串
    奇怪的是:我用调试软件发送相应字符串就没有问题?
      

  2.   

    如此,不如就在Response.write("Name=" &Request.form("name"))语句之前加一句Name=""试试吧?亦则:
    Name=""
    Response.write("Name=" &Request.form("name"))