<input type="image" src="login_button.png" name="login" /> Error in IE !! HELP
<input type="image" src="login_button.png" name="login" /> this will show up as NOT set in IE, but SET in Chrome. It will only show SET in IE, if i change type into type="submit" rather than "image".
These two piece of codes is from my website. I put them on test.php and test_action.php in attempt to figure out the problem.
test.php:
<form action="test_action.php" method="post">
<input type="image" src="direct_images/header_login_button.png" name="login" />
</form>
In test_action.php the only thing is:
if (isset($_POST['login'])) {
echo "login is set";
} else {
echo "error";
}
Yet, it says "login is set" for chrome, but says "error" in IE. However, if i change the type="image" into type="submit", it works fine in both.
I'm sure you'd get the same result if you try it on your wamp.
any comment is apprecaited.!!
|