SharkBait Posted August 8, 2006 Share Posted August 8, 2006 Am I doing this wrong??[code]<div style="margin-left: 250px; width: 100px; padding: 5px;"> <input type="hidden" name="uid" value="<?php echo $uid;?>" /> <input type="image" src="images/submit.gif" value="Submit" name="submit" title="Submit"/> <!-- <input type="submit" value="Submit" name="submit" /> --> </div>[/code]In Firefox it works fine. The script is executed with no issues. In IE, it just refreshes itself. I have a [code]<?php if(isset($_POST['submit'])) { echo "I WAS SUBMITTED";}?>[/code]Firefox shows the I WAS SUBMITED but IE does not. I commented the <input type="image" out and used the regular <input type="submit" and it works. but I'd rather use the graphic as the button than CSS the form's button. Quote Link to comment https://forums.phpfreaks.com/topic/16953-ie-and/ Share on other sites More sharing options...
AndyB Posted August 8, 2006 Share Posted August 8, 2006 images used as 'submit' buttons do not return their 'name'; they return the x and y co-ordinates of where they were clicked relative to the upper-left corner. Check for $submit_x and/or $submit_y being set assuming the submit is named 'submit' Quote Link to comment https://forums.phpfreaks.com/topic/16953-ie-and/#findComment-71395 Share on other sites More sharing options...
SharkBait Posted August 8, 2006 Author Share Posted August 8, 2006 AhhI did not know that.Cool thanks :) Quote Link to comment https://forums.phpfreaks.com/topic/16953-ie-and/#findComment-71401 Share on other sites More sharing options...
Daniel0 Posted August 9, 2006 Share Posted August 9, 2006 Instead of [code]<input type="image" src="images/submit.gif" value="Submit" name="submit" title="Submit"/>[/code] I think you should use this: [code]<button type='submit' name='submit'><img src='images/submit.gif' alt='submit' /></button>[/code]That will make it an actual submit button. Quote Link to comment https://forums.phpfreaks.com/topic/16953-ie-and/#findComment-71646 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.