asp中如何获得textarea的值
我有这样一段代码:Response.Write"<FORMname='PicRrlForm'>"Response.Write"<textareaname='textare...
我有这样一段代码:
Response.Write "<FORM name='PicRrlForm'>"
Response.Write "<textarea name='textarea' cols='97' rows='8' wrap='off'>"
nItems = Request.Form("Items").Count
For i = 1 To nItems
Response.Write Request.Form("Items")(i) & ","
Next
Response.Write Request("PicUrl")
Response.Write "</textarea>"
Response.Write "</FORM>"
Session("PicUr1_la")=Request.Form("textarea")
Response.Write Session("PicUr1_la") //测试session值
其中textarea 动态生成的值是类似于 “UploadFiles/20095623639165.jpg,UploadFiles/20095623645663.gif,”这样的值,可是我用Session("PicUr1_la")=Request.Form("textarea")这样的语句想将该值赋给一个session,可为什么我测试结果总是得不到值呢?Request.Form("textarea")这里有什么问题吗?是这样取值的吗?谢谢
忘了说明,我是采用一个按钮提交的<INPUT Type="Submit" Name="Action" Value="添加完毕"> 展开
Response.Write "<FORM name='PicRrlForm'>"
Response.Write "<textarea name='textarea' cols='97' rows='8' wrap='off'>"
nItems = Request.Form("Items").Count
For i = 1 To nItems
Response.Write Request.Form("Items")(i) & ","
Next
Response.Write Request("PicUrl")
Response.Write "</textarea>"
Response.Write "</FORM>"
Session("PicUr1_la")=Request.Form("textarea")
Response.Write Session("PicUr1_la") //测试session值
其中textarea 动态生成的值是类似于 “UploadFiles/20095623639165.jpg,UploadFiles/20095623645663.gif,”这样的值,可是我用Session("PicUr1_la")=Request.Form("textarea")这样的语句想将该值赋给一个session,可为什么我测试结果总是得不到值呢?Request.Form("textarea")这里有什么问题吗?是这样取值的吗?谢谢
忘了说明,我是采用一个按钮提交的<INPUT Type="Submit" Name="Action" Value="添加完毕"> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询