Changing input button to image?

Posted by user2970202 on Stack Overflow See other posts from Stack Overflow or by user2970202
Published on 2013-11-12T03:40:42Z Indexed on 2013/11/12 3:53 UTC
Read the original article Hit count: 100

Filed under:
|
|

You can view the page I'm referring to here:

http://portal.escalatehosting.com/cart.php?a=add&pid=9

Just enter a random domain name and then you'll see 2 buttons at the bottom. The first button (smaller one) works properly, but the second button (bigger one) isn't adding the order to the shopping cart.

Here's the code for the first button:

<input type="button" value="{$LANG.checkout} &raquo;" class="checkout" onclick="addtocart();" />

Here's the code for the second button that isn't working:

<input type="image" src="http://www.escalatehosting.com/images/continueorder.jpg" style="border:0px;" onclick="addtocart();" />

I'm simply trying to replace the first button with the second one so that an image is being used, but can't seem to get the second button to work properly. What have I done wrong? I changed the type to image and the added a src.

© Stack Overflow or respective owner

Related posts about php

Related posts about html