interpim Posted October 28, 2008 Share Posted October 28, 2008 Any idea why this isn't working in Internet Explorer? This works fine in Firefox. What do I need to do to get it to work? page is http://interpim.com/emblems <form method='post' action='' bgcolor=#333333> <input type='image' value='1' alt='Order' src='order.gif' name='order' > <input type='image' value='1' alt='Destruction' src='des.gif' name='destro' > </form> $realm_order = $_POST['order']; $realm_destro = $_POST['destro']; if($realm_destro == 1){ //various bits of code } if($realm_order == 1){ //different bits of code } Link to comment https://forums.phpfreaks.com/topic/130499-solved-code-not-working-in-internet-explorer/ Share on other sites More sharing options...
DarkWater Posted October 28, 2008 Share Posted October 28, 2008 Form elements with the type of 'image' should be sending out name_x and name_y, not just name, so that's where you're messing up. Do a print_r($_POST); to see what I mean. Link to comment https://forums.phpfreaks.com/topic/130499-solved-code-not-working-in-internet-explorer/#findComment-676998 Share on other sites More sharing options...
interpim Posted October 28, 2008 Author Share Posted October 28, 2008 doh... didn't realize php changed the . in name.x and name.y to underscores... got it working now thanks a bunch. Link to comment https://forums.phpfreaks.com/topic/130499-solved-code-not-working-in-internet-explorer/#findComment-677005 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.