在  </html:form>中
我放了<input type="image"  图片按纽。按了就会提交表单。不知道怎么回事啊。。没有用submit啊。

解决方案 »

  1.   

    <input type="image" />
    标签描述:创建一个图像控件,该控件单击后将导致表单立即被提交。点击就提交.如果想不提交用<img src 标签
      

  2.   

    肯定是呀,图片按钮也要触发submit事件。
      

  3.   

    定义
    创建一个图像控件,该控件被点击后将导致表单立即被提交。Creates an image control that, when clicked, causes the form to be immediately submitted.注释
    x 坐标将以控件名称后加 .x 提交,y 坐标将以控件名称后加 .y 提交。任何 value 属性都将被忽略。src 属性指定了 IMG 元素。从 Internet Explorer 5 起支持下列图像和视频文件格式。 .avi 
    .bmp 
    .emf 
    .gif 
    .jpg, .jpeg 
    .mov 
    .mpg, .mpeg 
    .png 
    .wmf 
    .xbm 
    此元素在 Internet Explorer 3.0 及以上版本的 HTML 和脚本中可用。此元素是一个内嵌元素。此元素不需要关闭标签。The x-coordinate is submitted under the name of the control with .x appended, and the y-coordinate is submitted under the name of the control with .y appended. Any value property is ignored. The src property specifies the IMG element.The following image and video file formats are supported as of Internet Explorer 5. .avi—Audio-Visual Interleaved (AVI) 
    .bmp—Windows Bitmap (BMP) 
    .emf—Windows Enhanced Metafile (EMF) 
    .gif—Graphics Interchange Format (GIF) 
    .jpg, .jpeg—Joint Photographic Experts Group (JPEG) 
    .mov—Apple QuickTime Movie (MOV) 
    .mpg, .mpeg—Motion Picture Experts Group (MPEG) 
    .png—Portable Network Graphics (PNG) 
    .wmf—Windows Metafile (WMF) 
    .xbm—X Bitmap (XBM)
    The INPUT type=image element is available in HTML and script as of Internet Explorer 3.0.This element is an inline element.This element does not require a closing tag.示例代码
    <form  action="http://www.admin5.com/html/asdocs/html_tutorials/yourname.asp" method="get">
    请输入你的姓名:
    <input type="text" name="yourname"><br>
    <input type="image" src ="../images/icons/go.gif" 
    alt = "提交" NAME="imagesubmit">
    </form>
    演示示例另见文章来自:http://www.admin5.com/html/html_tag_ref/input_type_image.html