[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Image in place of a submit button...

Posted on 2000-01-27
2
Medium Priority
?
184 Views
Last Modified: 2013-12-25
Is it possible to use an image in place of a submit button?
0
Comment
Question by:kch011099
2 Comments
 
LVL 1

Expert Comment

by:bbangerter
ID: 2394383
If you are willing to use JavaScript this can be easily accomplished.

<a href = "javascript:document.forms[0].submit ()"><img src = "someimage.gif"></a>
0
 
LVL 23

Accepted Solution

by:
chensu earned 40 total points
ID: 2394524
<form method=post target=_top>
<input type="image" name="Goto" src="../images/goto.jpg" border="0" alt="Goto">
</form>


TYPE=IMAGE  An image field that you can click, causing the form to be immediately submitted. The coordinates of the selected point are measured in pixel units from the upper-left corner of the image, and are returned (along with the other contents of the form) in two name/value pairs. The x-coordinate is submitted under the name of the field with ".x" appended, and the y-coordinate is submitted under the name of the field with ".y" appended. Any VALUE= attribute is ignored. The image itself is specified by the SRC= attribute, exactly as for the IMG element.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Suggested Courses

590 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question