Jump to content

Archived

This topic is now archived and is closed to further replies.

Madatan

Why wont isset work in IE?

Recommended Posts

This is weird, i'm having problems with[code] if(isset($_POST['submit']))[/code] to work with IE and Opera. Works perfectly with FireFox. Any clue why?

Share this post


Link to post
Share on other sites
There is not such a thing like "isset doesn't work with BROWSER_HERE".
PHP is server-sided.

What happens is, if you don't give a name and a value for your submit button, IE just won't POST it. You can either give it a name (like "submit") or add a hidden field:

[code]<input type="submit" name="submit" value="Hi!">
<input type="hidden" name="send" value="yes">[/code]

Share this post


Link to post
Share on other sites
If you're using an image as the input type, you'll have to reference it as $_POST['submit_x'] or $_POST['submit_y'] instead of $_POST['submit'] as IE sends the coordinates of the click rather than the elements name. Other than that, I'd go along with poirot.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.