Forum Moderators: coopster

Message Too Old, No Replies

Type image submit doesn't work with IE

         

Gruessle

5:51 am on Apr 11, 2005 (gmt 0)

10+ Year Member



I made this really short.

Please try it with IE it will not work but it works fine with FireFox
Whats wrong here?

<?php

echo " Logout : " . $_POST['logout'] . "<br>";
echo " Login : " . $_POST['login'] . "<br>";

?>

<div ALIGN="CENTER">
<form ACTION="<?php echo $PHP_SELF?>" METHOD="post">
Login
<input NAME="login" VALUE="login" TYPE=image ID="login" SRC="images/lock.gif" ALT="Login" WIDTH="16" HEIGHT="17" HSPACE=1 VSPACE=0 BORDER=0>
</form>
<p>&nbsp;</p>
<form ACTION="<?php echo $PHP_SELF?>" METHOD="POST">
Logout
<input NAME="logout" TYPE=image VALUE="logout" SRC="images/lock.gif" ALT="logout" WIDTH="16" HEIGHT="17" ALIGN="middle">
</form></div>

[edited by: jatar_k at 6:41 am (utc) on April 11, 2005]
[edit reason] no urls thanks [/edit]

dreamcatcher

9:02 am on Apr 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try:

echo " Logout : " . $_POST['logout_x'] . "<br>";
echo " Login : " . $_POST['login_x'] . "<br>";

dc

Gruessle

4:40 pm on Apr 11, 2005 (gmt 0)

10+ Year Member



I get a random number between 1 & 10 and it works on IE

What is that can you explain?

Gruessle

4:54 pm on Apr 11, 2005 (gmt 0)

10+ Year Member



I get it

It gives me the x y click possition of my mouse.

Still don't get why basic login & logout does not work.

coopster

5:57 pm on Apr 11, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Probably because of what you are expecting to be returned by that value. Here is a more in-depth thread regarding the "input submit/image" issue and MS IE

[webmasterworld.com...]