如何解决request.form 没有显示值
我尝试在表单中发送值 CSRFToken 并尝试回忆它但它没有显示任何值,表单类型是 POST,在 javascript 中 CSRFToken 的值是存在的,但是当我尝试请求表单时,该值是空
function OutputForm()
%>
<form name="frmSend" method="POST" enctype="multipart/form-data" action="Upload_Data_Transaksi.asp" onSubmit="return onSubmitForm();">
<table width="500" align="center" >
<tr>
<td>
<font size="+1"><B>Data Transaksi</B></font><br><br>
File : <input name="attach1" type="file" size=50><br>
<br>
<input type="text" name="CSRFToken" value="<%= token %>" readonly>
<input style="margin-top:4" type=submit value="Upload">
<br><br><B><font color="#FF0000" size="+1">Tipe File Harus .mdb !</font><B>
</td>
</tr>
</table>
</form>
<%
end function
<BODY>
<%
Dim diagnostics
if Request.ServerVariables("REQUEST_METHOD") <> "POST" then
diagnostics = TestEnvironment()
if diagnostics<>"" then
response.write "<div style=""margin-left:20; margin-top:30; margin-right:30; margin-bottom:30;"">"
response.write diagnostics
response.write "<p>After you correct this problem,reload the page."
response.write "</div>"
else
response.write "<div style=""margin-left:15"">"
OutputForm()
response.write "</div>"
end if
else
userauthentication()
response.write "<div style=""margin-left:15"">"
response.Write request.form("CSRFToken")
response.End
OutputForm()
%>
<table width="500" align="center" >
<tr>
<td> <% x = SaveFiles()
if left(x,1)=1 then
Response.Redirect "insert_mdb.asp?nmfile=us3r" & SESSION("User_id") & mid(x,3)
else
response.Write x
end if
%></td>
</tr>
</table>
<%
response.write "<br><br></div>"
end if
%>
<br><br>
</BODY>
我尝试在 request.form("CSRFToken") 中调用它,但它没有显示任何值,我在 javascript 上提醒它它显示了值我该如何解决这个问题?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。