求教asp页面传递问题,在线求教
先列出我的程序:
1.登陆界面的提交部分程序
<Form method= "psot " action= "02_11.asp ">
<p align= "center "> 请输入用户名:
<input type= "text " name= "YHM " maxlength= "10 " size= "10 " value= "ysy "> </input>
<p align= "center "> 请输入密码:
<input type= "password " name= "pwd1 " maxlength= "10 " size= "10 ">
</input>
<P align= "center ">
<input type= "submit " value= "确定 " name= "btnSubmit ">
</form>
2.跳转连接02_11.asp的程序
<html>
<head>
<title> </title>
<body>
<%Dim uu
uu=Request( "YHM ")
Response.Write uu
Dim objConn1
'打开数据库连接
Set objConn1=Server.CreateObject( "ADODB.Connection ")
objConn1.ConnectionString= "Provider=Microsoft.Jet.OLEDB.4.0; "&_
"Data Source= "&Server.MapPath( "\ "&uu& "\ "&uu& ".mdb ")
objConn1.Open%>
<Form method= "psot " >
<p> 请输入零件名称:
<input type= "text " name= "LJM " maxlength= "10 " size= "6 " > </input>
请输入零件号:
<input type= "text " name= "LJH " maxlength= "10 " size= "6 " > </input>
请输入材料名称或牌号:
<select name= "CLM " size= "1 ">
<option value= "HT140 "> HT140
<option value= "HT140 "> HT140 </select>
请输入毛胚形状及尺寸:
<input type= "text " name= "MPX " maxlength= "10 " size= "10 " > </input>
<p> 请输入一件毛料可制零件数:
<input type= "text " name= "YJM " maxlength= "10 " size= "4 "> </input>
请输入材料消耗定额:
<input type= "text " name= "CLX " maxlength= "10 " size= "10 "> </input>
请输入零件毛重:
<input type= "text " name= "LJZ " maxlength= "10 " size= "4 "> </input>
请输入毛胚净重:
<input type= "text " name= "MPZ " maxlength= "10 " size= "4 "> </input>
<p> 请输入每台产品零件数:
<input type= "text " name= "MTC " maxlength= "10 " size= "4 "> </input>
请输入每批件数:
<input type= "text " name= "MPJ " maxlength= "10 " size= "4 "> </input>
请输入产品名称:
<input type= "text " name= "CPM " maxlength= "10 " size= "10 "> </input>
请输入产品类型:
<input type= "text " name= "CPL " maxlength= "10 " size= "10 "> </input>
<p>
<input type= "submit " value= "提交修改 " name= "btnSubmit ">
</form>
<%strSQL1= "UPDATE 工艺过程卡片表头 SET 零件号= ' "&request( "LJH ")& " ',材料名称或牌号= ' "&request( "CLM ")& " ',毛胚形状及尺寸= ' "&request( "MPX ")& " ',一件毛料可制零件数= ' "&request( "YJM ")& " ',材料消耗定额= ' "&request( "CLX ")& " ',零件毛重= ' "&request( "LJZ ")& " ',毛胚净重= ' "&request( "MPZ ")& " ',每台产品零件数= ' "&request( "MTC ")& " ',每批件数= ' "&request( "MPJ ")& " ',产品名称= ' "&request( "CPM ")& " ',产品类型= ' "&request( "CPL ")& " ' WHERE 零件名称= ' "&request( "LJM ")& " ' "
objConn1.Execute(strSQL1)
objConn1.Close
Set objConn1=Nothing
%>
</body>
</html>
按下按钮提示错误
Server.MapPath(), ASP 0174 (0x80004005)
在 MapPath 方法的路径参数中发现无效字符 '/ ' 或 '\ '。
/02_11.asp, 第 15 行
点击登陆页面的按钮,成功登陆,数据YHM有提交到跳转页面,有显示出来。
为何跳转页面出错,文件位置没错,小弟反复试验,自己感觉是Request( "YHM ")这样的方法只能提交一次?下次点击数据就清空了?该如何改进传递方法
初学asp,望高手指点迷津,在此谢谢啦~~~
[解决办法]
对了,给分时,给18分我,谢谢。。