表单如何自我提交

如题比如
001.asp

要提交给自己,
不用action="001.asp"
还有什么方法?
请赐教
---------------------------------------------------------------

不要写action 这个属性, 默认就是提交给自己

 1<form method="post" name="form1">   
 2....   
 3\---------------------------------------------------------------   
 4  
 5<form action="" method="post">   
 6...   
 7</form>   
 8\---------------------------------------------------------------   
 9  
10action=""   
11\---------------------------------------------------------------   
12  
13提交页面提交给自己就是了   
14不过你要防止别人刷新带来的数据库内容的增加   
15\---------------------------------------------------------------   
16  
17filename=request.servervariables("script_name")   
18position=instrrev(filename,"/")+1   
19filename=mid(filename,position)   
20  
21  
22  
23action="filename"</form>
Published At
Categories with Web编程
comments powered by Disqus