asp 表单的数据传输问题,我的程序是这样写的,感觉没有错误,可是2.asp中没有结果

[复制链接]
查看11 | 回复1 | 2011-3-18 07:27:09 | 显示全部楼层 |阅读模式
1.asp 代码如下:
%@LANGUAGE=\"VBSCRIPT\" CODEPAGE=\"936\"%
!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"<a href=\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" target=\"_blank\">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>\"
html xmlns=\"<a href=\"http://www.w3.org/1999/xhtml\" target=\"_blank\">http://www.w3.org/1999/xhtml</a>\"
head
meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" /
title无标题文档/title
/head

body
form id=\"form1\" name=\"form1\" method=\"post\" action=\"\"

请输入:input type=\"text\" name=\"name\" size=10

input type=\"submit\" name=\"Submit\" value=\"提交\" /

2.asp代码如下:
%@LANGUAGE=\"VBSCRIPT\" CODEPAGE=\"936\"%
!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"<a href=\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" target=\"_blank\">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>\"
html xmlns=\"<a href=\"http://www.w3.org/1999/xhtml\" target=\"_blank\">http://www.w3.org/1999/xhtml</a>\"
head
meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" /
title无标题文档/title
/head

body

前一页传来的数据是:

%
response.expires=0
response.Write(Request.form(\"name\"))
%
/body
/html
2.asp应该输出1.asp输入的内容,可是怎么没有啊。运行是一个空白的网页
回复

使用道具 举报

千问 | 2011-3-18 07:27:09 | 显示全部楼层
<pre id=\"best-answer-content\" class=\"reply-text mb10\">form id=\"form1\" name=\"form1\" method=\"post\" action=\"\"
你在1.asp中提交的地址 action是空的,并没有传到2.asp啊?
QQ 16 52 05 00 84
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行