请各位再帮我看看这个脚本,多谢了
<% @language = vbscript %>
<% option explicit
response.expires = 0
dim strfirstname,strmessage
if request.servervariables('content_length") <>0 then
' retrieving form data form post command body
strfirstname = trim(request.form("firstname"))
strmessage = trim(request.form("message"))
strmessage = replace(strmessage,vbcrlf,"<br>" &vbcrlf)
%>
<html><body>
the script has resceived the form data.<br>
first name : <% = strfirstname %><BR>
message : <% = strmessage %><br>
</body></html>
<%
else
%>
<html><body>
please provide ur name :<br>
<form action = "<% = request.servervariables("script_name") %>"
method = "post">
first name : <input type = "text" name = "firstname"><br>
ur message : <textarea name = "message">hello,
this is a text.</textarea><BR>
<input type = "submit" name = "submit" value = "submit form">
</form>
</body></html>
<% end if %>
另外,请大虾门就本例给我讲一下request
thanx again