webguync Posted May 27, 2010 Share Posted May 27, 2010 I think this is an IE issue. I have a submit button for a form and when I use an image as the submit button it doesn't work in IE. Works fine in FF though. When I take out the image part and just use the default submit, works fine in IE. Here is the code with the image echo '<input name="Update" type="image" value="submit" id="Update" src="images/Update.png" /> Quote Link to comment Share on other sites More sharing options...
haku Posted May 28, 2010 Share Posted May 28, 2010 When you submit with an input type image, the post values are: $_POST['Update_x'] and $_POST['Update_y'] (as Update is the name of your submit). These are the coordinates where you clicked. Quote Link to comment Share on other sites More sharing options...
jacko310592 Posted May 28, 2010 Share Posted May 28, 2010 you could try: echo '<button name="Update" type="submit" id="Update"><img src="images/Update.png" /></button>'; then add this to the CSS to stop it looking like an ordinary submit button: button { border: 0; background: none; } alternatively, you could use a button with no value, and add an image background to it using CSS. Quote Link to comment Share on other sites More sharing options...
webguync Posted May 28, 2010 Author Share Posted May 28, 2010 yea, I think I will try that route, thanks. 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.