Page 1 of 1

ie having problems, firefox not...

Posted: Sat May 03, 2008 2:32 am
by paqman
Hello,

I'm nearing completion of a site and suddenly realized that my login code does not work in Internet Explorer, while it does work in Firefox. I've tracked it down to the 'new and improved' IE7. My submit button is an image:

Code: Select all

 
<input type="image" name="submit" value="itsvalue" alt="Log In" src="i/login.jpg" class="navimg">
 
When the form is submitted, Firefox can figure out that $_POST["submit"] = "itsvalue". Firefox can also return the x and y position of where the user clicked. Apparently, IE now ONLY returns the x and y, no actual value.

I've based the entire site around image submits, some with values which determine what the resulting page does. Anyone know a workaround? Thanks.

Re: ie having problems, firefox not...

Posted: Tue May 06, 2008 3:48 pm
by francisjeffy
IE does not take value of a image submit button.
u got to pass it as a hidden variable

Code: Select all

<input type="image" name="submit" alt="Log In" src="i/login.jpg" class="navimg">
<input type="hidden" name="submit" value="itsvalue">
u can change the code like above
jeF