swissbeets Posted July 17, 2008 Share Posted July 17, 2008 i did this with my checkout but cannot seem to get it to work in my other form i am using <input type="image" name="submit" alt="Add to Big Peckers Shopping Cart" src="images/addtocart.gif" height="46" width="180"/> the code on my other form is <input type="image" name="Google Checkout" alt="Fast checkout through Google" src="https://checkout.google.com/buttons/checkout.gif?merchant_id=*************&w=180&h=46&style=trans&variant=text&loc=en_US" height="46" width="180"/> does anyone have another example or see a dumb mistake i am making? Link to comment https://forums.phpfreaks.com/topic/115146-solved-using-an-image-to-submit-a-form/ Share on other sites More sharing options...
vikramjeet.singla Posted July 17, 2008 Share Posted July 17, 2008 can you check your image path for submit button.... Link to comment https://forums.phpfreaks.com/topic/115146-solved-using-an-image-to-submit-a-form/#findComment-592166 Share on other sites More sharing options...
adam84 Posted July 17, 2008 Share Posted July 17, 2008 <IMG SRC='' ONCLICK=javascript:document.getElementById('myForm').submit(); STYLE=CURSOR:pointer; ALT='Click to checkout'> Link to comment https://forums.phpfreaks.com/topic/115146-solved-using-an-image-to-submit-a-form/#findComment-592419 Share on other sites More sharing options...
PFMaBiSmAd Posted July 17, 2008 Share Posted July 17, 2008 Define: "cannot seem to get it to work". What is it doing or not doing? What do you see in front of you? Link to comment https://forums.phpfreaks.com/topic/115146-solved-using-an-image-to-submit-a-form/#findComment-592481 Share on other sites More sharing options...
swissbeets Posted July 17, 2008 Author Share Posted July 17, 2008 it is just displaying the text with no image i can click the text but it does nothing Link to comment https://forums.phpfreaks.com/topic/115146-solved-using-an-image-to-submit-a-form/#findComment-592596 Share on other sites More sharing options...
swissbeets Posted July 17, 2008 Author Share Posted July 17, 2008 i got it it was the image path thank you very much sorry i didnt catch that before even posting Link to comment https://forums.phpfreaks.com/topic/115146-solved-using-an-image-to-submit-a-form/#findComment-592661 Share on other sites More sharing options...
TheFilmGod Posted July 18, 2008 Share Posted July 18, 2008 Do not use <input type="image"> use <button type="submit"></button> instead. It is easier to implement and style. Trust me. Link to comment https://forums.phpfreaks.com/topic/115146-solved-using-an-image-to-submit-a-form/#findComment-593021 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.