Click to See Complete Forum and Search --> : Image as Form Buttin Submit.


acidXrock
10-29-2003, 02:11 PM
I am working on an order from for my web page I am building. I started to attempt to put in image in instead of the default button. But any code I have found that allows me to do this I put it in and then the buttons do not work liek they should. http://www.geocities.com/dkiddo3302/pageone.html

Right now I have the buttons on there but it does not work liek it should. The original code is:

<input name=addbox type=button value="Add This Item To My Total" onclick=Loc_additem('p1i1','1.11','Page_1_item_1','pageone.html')><BR>
<input type=button name=subbox value="Subtract This Item From My Total" onclick=Loc_subitem('p1i1','1.11','page_1_item_1','pageone.html')>

How would I replace my image instead of the default button? Thanks for nay help.

gil davis
10-29-2003, 03:10 PM
The default action of an <input type="image"> is SUBMIT. If you want to do something else, just use an HTML image and a hyperlink.
<a href="#" onclick=Loc_additem('p1i1','1.11','Page_1_item_1','pageone.html')><img src="whatever" alt="Add This Item To My Total"></a>