如何使用经典的asp在sql server中存储只读或禁用的文本框值? [英] how to store readonly or disabled text box values in sql server using classic asp?

查看:64
本文介绍了如何使用经典的asp在sql server中存储只读或禁用的文本框值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在sql server表中存储只读或禁用的文本框值?



How to store readonly or disabled text box values in sql server table?

<form name="from1" action="test.asp" id=form>
  <input name="text1" type="text" value=" " readonly>
  <input name="text1" type="text" value=" " readonly>
  <input name="bt1" type="submit" value=" " >
</form>





test.asp:



test.asp:

rs("t1_Name")=request.form("text1")
rs("t2_Name")=request.form("text2")





单击提交按钮时,数据应存储在相应的表中。



When clicking submit button the data should be stored into the respective table.

推荐答案

只需在表单标记中添加method =post并进行检查。希望这个解决方案有所帮助。
Just add method="post" in your form tag and check. Hope this solution helps.


这篇关于如何使用经典的asp在sql server中存储只读或禁用的文本框值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆