添加数据入库的问题?
在添加数据到数据库的时候,用这两种方式:
a.asp
<%
action = Request("action")
if action = "add" then
'插入到数据库
end if
%>
<html><head></head><body>
<form id="form1" name="form1" action="">
****
<input type="hidden" name="action" value="add">
</form>
</body></html>
这样添回到数据库后,在当前页面再刷新一次页面,就再插入了一条数据。如何处理呢?谢谢!