可以实现在同一页面里的用多按钮进行提交吗?

来源:asp之家 时间:2009-11-01 18:04:00 

newstudent.asp

<script LANGUAGE=″vbscript″ RUNAT=″Server″> 
  </script> 
  <%if Request.Form(″cmdback″)=″返回″ then 
Response.Redirect ″showstudent.asp″ 
   end if%> 
  <html> 
  <head> 
  <meta http-equiv=″Content-Type″ content=″text/html; charset=gb_2312-80″> 
  <meta name=″VI60_defaultClientScript″ content=″JavaScript″> 
  <meta name=″GENERATOR″ content=″Microsoft FrontPage 3.0″> 
  <title>春风精彩之培训班页面</title> 
  <%if Request.QueryString(″idv″)<>″″ and Request.ServerVariables(″request_method″)=″GET″ then 
  ' 如果是其它页面带参数调用此页面则为真 
   end if 
   if Request.ServerVariables(″request_method″)=″POST″ then 
   ' 如果是此页面执行提交操作则为真 
   if Request.Form(″cmdupdate″)=″更改″ 
   then 
   ' 如果是点击cmdupdate按钮则为真 
   end if 
   if Request.Form(″cmdnew″)=″新学号″ 
   then 
   ' 如果是点击cmdnew按钮则为真 
   end if 
   if Request.Form(″cmdinsert″)=″添加″ 
   then 
   ' 如果是点击cmdinsert按钮则为真 
   end if 
  end if%> 
  <%cn.close%> 
  </script> 
  </head> 
  <body background=″images/backgrnd.jpg″> 
  <form method=″post″ name=″frmedit″ LANGUAGE=″javascript″ 
   onsubmit=″return forminput_onsubmit()″> 
   <div align=″center″><center><h5> 
   <input type=″submit″ name=″cmdupdate″ value=″更改″> 
   <input type=″submit″ name=″cmdnew″ value=″新学号″> 
   <input type=″submit″ name=″cmdinsert″ value=″添加″> 
   <input type=″button″ name=″cmdback″ value=″返回″ onclick=″javascript:window.opener.focus()″> 
  </h5> 
  </center> 
  </div> 
  </form> 
  </body> 
  </html>

 

标签:提交,表单,按钮
0
投稿

猜你喜欢

  • sql server实现在多个数据库间快速查询某个表信息的方法

    2024-01-25 05:23:10
  • 用命令创建MySQL数据库(de1)的方法

    2024-01-22 16:12:11
  • django 读取图片到页面实例

    2023-02-22 13:30:50
  • 微信小程序实现搜索功能

    2024-05-02 16:17:16
  • Dreamweaver使用技巧--让css使网页图片半透明

    2010-09-05 21:13:00
  • 在Linux上安装Python的Flask框架和创建第一个app实例的教程

    2021-08-26 14:23:11
  • numpy创建神经网络框架

    2023-07-10 22:17:50
  • Python脚本在Appium库上对移动应用实现自动化测试

    2021-12-27 12:43:24
  • 基于python计算滚动方差(标准差)talib和pd.rolling函数差异详解

    2023-04-09 17:28:45
  • javascript实现des解密加密全过程

    2023-07-02 05:18:50
  • 讲解无法打开用户默认数据库的解决方法

    2008-12-05 15:55:00
  • Go Grpc Gateway兼容HTTP协议文档自动生成网关

    2024-05-21 10:27:16
  • asp如何动态生成WBMP?

    2009-11-18 20:36:00
  • php 常用字符串函数总结

    2024-06-05 09:47:33
  • Go开源项目分布式唯一ID生成系统

    2024-02-14 22:08:15
  • class类在python中获取金融数据的实例方法

    2021-03-30 10:18:32
  • JavaScript循环遍历的24个方法,你都知道吗

    2024-04-17 09:41:18
  • 恢复.mdf 数据库步骤

    2024-01-16 00:17:35
  • python 自定义异常和主动抛出异常(raise)的操作

    2022-03-22 12:43:22
  • 教你怎么用Python操作MySql数据库

    2024-01-13 06:46:48
  • asp之家 网络编程 m.aspxhome.com