D
DNChen
Unregistered / Unconfirmed
GUEST, unregistred user!
我有如下form
<FORM NAME="bform" METHOD="post" action="cgi-bin/bargin.dll/operator">
User:<INPUT TYPE=TEXT NAME="name" SIZE="15"><BR>
Password:<INPUT TYPE=password NAME="password" SIZE="15" MAXLENGTH="8">
<INPUT TYPE="SUBMIT" VALUE=" O K !">  <INPUT TYPE="RESET"
VALUE="RESET!">
</FORM>
在isapi中使用以下代码
name := request.ContentFields.Values['name'];
password := request.ContentFields.Values['password'];
无法获取name和password两个东西的值,我查了帮助
ContentFields is the parsed content of a POST request message.
说明用post方法返回的from是应该使用contentfields来获取内容的。
然后我再查了当时的contentfields.text,值如下:
T /cgi-bin/bargin.dll/operator HTTP/1.1
Accept: */*
Referer:
http://127.0.0.1/wcontent.htm
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 95)
Host: 127.0.0.1 Content-Length: 22
Connection: Keep-Alive
很明显的name和password两个东西都没有传过来,实在是想不通,
请各位大虾帮助!我用的是d3,调试用服务器webweaver,ie5.0!本机调试
<FORM NAME="bform" METHOD="post" action="cgi-bin/bargin.dll/operator">
User:<INPUT TYPE=TEXT NAME="name" SIZE="15"><BR>
Password:<INPUT TYPE=password NAME="password" SIZE="15" MAXLENGTH="8">
<INPUT TYPE="SUBMIT" VALUE=" O K !">  <INPUT TYPE="RESET"
VALUE="RESET!">
</FORM>
在isapi中使用以下代码
name := request.ContentFields.Values['name'];
password := request.ContentFields.Values['password'];
无法获取name和password两个东西的值,我查了帮助
ContentFields is the parsed content of a POST request message.
说明用post方法返回的from是应该使用contentfields来获取内容的。
然后我再查了当时的contentfields.text,值如下:
T /cgi-bin/bargin.dll/operator HTTP/1.1
Accept: */*
Referer:
http://127.0.0.1/wcontent.htm
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 95)
Host: 127.0.0.1 Content-Length: 22
Connection: Keep-Alive
很明显的name和password两个东西都没有传过来,实在是想不通,
请各位大虾帮助!我用的是d3,调试用服务器webweaver,ie5.0!本机调试