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 } Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.