title: image working as a submit button
body: <p>I do some code already written by previous development Team and I came across a code snippt which acts a bit strangely so Please take a look at it and make me understand.</p>
  
  <pre><code>    &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML Strict//EN"&gt;
  &lt;META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
  
  &lt;HTML&gt;
      &lt;HEAD&gt;
      &lt;/HEAD&gt;
      &lt;BODY id="ext-gen6" class=" ext-ie ext-ie6 ext-border-box"
          leftMargin="0" rightMargin="0" topMargin="0" marginheight="0"
          marginwidth="0"&gt;
          &lt;TABLE border="0" cellSpacing="0" cellPadding="0" width="100%"
              height="100%"&gt;
              &lt;TBODY&gt;
                  &lt;TR&gt;
                      &lt;TD height="85%" vAlign="top" width="80%"&gt;
                          &lt;DIV&gt;
                              &lt;TABLE class="allcolors" border="0" width="100%"&gt;
                                  &lt;TBODY&gt;
                                      &lt;TR&gt;
                                          &lt;TD&gt;
                                              &lt;TABLE border="0" cellSpacing="0" borderColor="#6699cc"
                                                  cellPadding="0" width="100%" height="685"&gt;
                                                  &lt;TBODY&gt;
                                                      &lt;TR&gt;
                                                          &lt;TD class="threecolors" vAlign="top"&gt;
  
  
                                                                          &lt;FORM id="Report1"
                                                                              encType="multipart/form-data"
                                                                              onsubmit="ProgressBar()" method="post"
                                                                              name="Form2"
                                                                              action="/cgfsampling/assignReport.do"&gt;
  
                                                                                  &lt;INPUT id="assign" 
                                                                                      src="http://localhost:8080/myProj/images/cation.gif"
                                                                                      type="image" name="" value="" /&gt;
  
                                                                           &lt;/FORM&gt;
  
                                                                       &lt;/TD&gt;
  
  
                                                      &lt;/TR&gt;
                                                  &lt;/TBODY&gt;
                                              &lt;/TABLE&gt;
                                          &lt;/TD&gt;
                                      &lt;/TR&gt;
                                  &lt;/TBODY&gt;
                              &lt;/TABLE&gt;
                          &lt;/DIV&gt;
                      &lt;/TD&gt;
                  &lt;/TR&gt;
              &lt;/TBODY&gt;
          &lt;/TABLE&gt;
      &lt;/BODY&gt;
  &lt;/HTML&gt;
  </code></pre>
  
  <p>so please let me know  why image is working as a submit button</p>
  
  <p>Thnaks,
  Vineet</p>