Quantcast
Channel: 动网官方论坛--最新20篇论坛精华-全文
Viewing all articles
Browse latest Browse all 20

asp中表单提交时遇到的问题

0
0

在网页上建一个form表单,表单中有两个提交按钮。

一个是向数据库中添加数据,另一个是查看数据库中的信息。

例:

<html>

<body>

<form action="log.asp" method="post" name="login">

用户名:<input type=text name=nm value=''><br>

密码:<input type=password name =pwd value=''><br>

<input type="submit " name =bt1 value="确认提交">

<input type ="submit " name=bt2 value ="查看数据">

</form>

</body>

</html>

向数据库中添加数据的ASP代码我会写,从数据库中提取信息的代码我也会写。

但我该如何去用代码识别这两个按钮呢?还是表单操作只是单向的,只能提交不能交互。


Viewing all articles
Browse latest Browse all 20

Latest Images

Trending Articles





Latest Images