image to submit button

  • olm75
  • Proficient
  • Proficient
  • olm75
  • Posts: 294

Post 3+ Months Ago

ok its been awhile since i have done this, but for some reason i cant get the form to go through:
Code: [ Select ]
 
<form action="/index.html" method="post" name="contestForm" id="contestForm">
              <table width="550" border="0" align="center" cellpadding="2" cellspacing="6" class="join_form">
                <tr>
                  <td align="right" valign="middle">choose site: </td>
                  <td height="14" align="left"><select name="site" id="site">
                    <option>choose site desired</option>
                  </select></td>
                </tr>
                <tr>
                  <td colspan="2" align="center"><table width="500" border="0" cellspacing="0" cellpadding="0" id="submit_form">
                    <tr>
                      <th height="145" align="right" scope="col"><!--<img src="images/suggest_23.gif" name="submit" width="595" height="94" id="submit" />-->
                      <INPUT name="submit" INPUT type="image" id="submit" SRC="images/suggest_23.gif" WIDTH="595" HEIGHT="94" BORDER="0" ALT="Submit Form">
                     
                      </th>
                    </tr>
                    <tr>
                      <td align="center" valign="middle">&nbsp;</td>
                    </tr>
                  </table></td>
                </tr>
              </table>
            </form>
 
  1.  
  2. <form action="/index.html" method="post" name="contestForm" id="contestForm">
  3.               <table width="550" border="0" align="center" cellpadding="2" cellspacing="6" class="join_form">
  4.                 <tr>
  5.                   <td align="right" valign="middle">choose site: </td>
  6.                   <td height="14" align="left"><select name="site" id="site">
  7.                     <option>choose site desired</option>
  8.                   </select></td>
  9.                 </tr>
  10.                 <tr>
  11.                   <td colspan="2" align="center"><table width="500" border="0" cellspacing="0" cellpadding="0" id="submit_form">
  12.                     <tr>
  13.                       <th height="145" align="right" scope="col"><!--<img src="images/suggest_23.gif" name="submit" width="595" height="94" id="submit" />-->
  14.                       <INPUT name="submit" INPUT type="image" id="submit" SRC="images/suggest_23.gif" WIDTH="595" HEIGHT="94" BORDER="0" ALT="Submit Form">
  15.                      
  16.                       </th>
  17.                     </tr>
  18.                     <tr>
  19.                       <td align="center" valign="middle">&nbsp;</td>
  20.                     </tr>
  21.                   </table></td>
  22.                 </tr>
  23.               </table>
  24.             </form>
  25.  


and when it does i get an 405 method not allowed error:
Code: [ Select ]
 
Method Not Allowed
The requested method GET is not allowed for the URL /index.html.
 
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.41 Server at braces-porn.mnpromo.com Port 80
 
  1.  
  2. Method Not Allowed
  3. The requested method GET is not allowed for the URL /index.html.
  4.  
  5. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
  6. Apache/1.3.41 Server at braces-porn.mnpromo.com Port 80
  7.  

im assuming that i need to set the image button to post but only one reason i dont remember how because i thought it was set earlier in the code.
Code: [ Select ]
 
<form action="/index.html" method="post" name="contestForm" id="contestForm">
 
  1.  
  2. <form action="/index.html" method="post" name="contestForm" id="contestForm">
  3.  

can any one help
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

What are you using to process the form information with? The error is more likely in your index.html. I can only assume you are using a javascript to process it with? it's a little unusual to see a form action as an HTML page. I would have expected a php or asp page as your action.


off topic - your "submit" button thing brought to mind a quote I ran across yesterday "The web is a dominatrix. Every where I turn, I see little buttons ordering me to Submit." lol
  • bishop_ian
  • Newbie
  • Newbie
  • bishop_ian
  • Posts: 14

Post 3+ Months Ago

The simplest way is to use an image as a submit button employing the <input> HTML form tag.
<input type="image" name="myclicker" src="image.jpg" width="55" height="22">

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 55 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.