form image button doesnt work in internet explorer

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

form image button doesnt work in internet explorer

Post by jonnyfortis »

i have a form with two buttons if one button is pressed it sends it to one payment method if the other is pressed it sends it to another payment method. this works fine in google chrome but not in firefox or internet explorer. if i try in in IE it stays on the same page

here is the form
<form action="<?php echo $editFormAction; ?>XC_SaveCartToTable=1" method="POST" name="form1" id="form1">
<input name="buttonClicked" type="image" src="images/paywithcard.jpg" value="1" />
<input name="buttonClicked" type="image" src="images/checkoutpaypal.jpg" value="2" />
</form>
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: form image button doesnt work in internet explorer

Post by requinix »

Change the method to GET and see what values are being passed (via the URL).
Post Reply