ie having problems, firefox not...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
paqman
Forum Contributor
Posts: 125
Joined: Sun Nov 14, 2004 7:41 pm
Location: Burnaby, BC, Canada

ie having problems, firefox not...

Post 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.
francisjeffy
Forum Newbie
Posts: 17
Joined: Fri Feb 29, 2008 12:10 pm

Re: ie having problems, firefox not...

Post 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
Post Reply