DarkPrince2005 Posted January 15, 2008 Share Posted January 15, 2008 I've got a form, and images that i'd like to use instead of the plain old buttons. can somebody please help? <form method="POST" action="2.php"> <td valign="top" align="center"><b> <font size="2" color="#175A82" face="verdana, Arial, Helvetica"> Comments:<br> </font><font size="2" color="#213884"> <textarea rows="8" name="S1" cols="30"></textarea> <br> <br> </font> <font size="2" color="175A82" face="verdana, Arial, Helvetica"> Category:<br> </font></b> <select size="1" name="D1"> <option selected>Website Category</option> <option>Introduce</option> <option>About us</option> <option>Product</option> <option>Services</option> <option>Read me</option> </select> <br> <br> <table style="border-collapse: collapse" cellpadding="4"> <tr> <td align="right" width="80" bgcolor="whitesmoke"> <font size="2" face="verdana, Arial, Helvetica"> Name</font></td> <td> <input name="Name" value size="20"> </td> </tr> <tr> <td align="right" bgcolor="whitesmoke"> <font size="2" face="verdana, Arial, Helvetica"> Title</font></td> <td> <input name="Title" value size="20"> </td> </tr> <tr> <td align="right" bgcolor="whitesmoke"> <font size="2" face="verdana, Arial, Helvetica"> Company</font></td> <td> <input name="Company" value size="20"> </td> </tr> <tr> <td align="right" bgcolor="whitesmoke"> <font size="2" face="verdana, Arial, Helvetica"> Address</font></td> <td> <input name="Address" value size="20"> </td> </tr> <tr> <td align="right" bgcolor="whitesmoke"> <font size="2" face="verdana, Arial, Helvetica"> Telephone</font></td> <td> <input name="Telephone" value size="20"> </td> </tr> <tr> <td align="right" bgcolor="whitesmoke"> <font size="2" face="verdana, Arial, Helvetica"> FAX</font></td> <td> <input name="FAX" value size="20"> </td> </tr> <tr> <td align="right" bgcolor="whitesmoke" valign="top"> <font size="2" face="verdana, Arial, Helvetica"> E-mail</font></td> <td> <input name="Email" value size="20"> <br> <br> <font style="FONT-SIZE: 9pt" face="Verdana, Arial, Helvetica, sans-serif"><img src="images/send.gif" border="0"></font> <font style="FONT-SIZE: 9pt" face="Verdana, Arial, Helvetica, sans-serif"> <img src="images/reset.gif" border="0"></font> </td> </tr> </table></td> </form> Link to comment https://forums.phpfreaks.com/topic/86186-solved-submit-buttons/ Share on other sites More sharing options...
monkeytooth Posted January 15, 2008 Share Posted January 15, 2008 You could have easily googled this just for reference image as submit button.. but Ill heed away from being a jerk or at least coming across as one.. First, you cant use an image as an element of a form without defining it as an element of the form. What you have is just img src="" and its not even in the form of a link so you couldn't use it as anything clickable per say anyway. And even then it would only react as just that a link unfortunately. Well for the sake of helping one learn my piece is said.. now.. <input type="image" src="[b]images/submit.jpg[/b]" value="Submit" alt="Submit"> Is what your looking for in concept. Change accordingly and hope all works out for you ;D Link to comment https://forums.phpfreaks.com/topic/86186-solved-submit-buttons/#findComment-440238 Share on other sites More sharing options...
blackcell Posted February 18, 2008 Share Posted February 18, 2008 Will this act the very same as a type='button' every time? Link to comment https://forums.phpfreaks.com/topic/86186-solved-submit-buttons/#findComment-470001 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.