Madatan Posted June 19, 2006 Share Posted June 19, 2006 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? Quote Link to comment Share on other sites More sharing options...
poirot Posted June 19, 2006 Share Posted June 19, 2006 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] Quote Link to comment Share on other sites More sharing options...
zq29 Posted June 19, 2006 Share Posted June 19, 2006 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. Quote Link to comment Share on other sites More sharing options...
Madatan Posted June 19, 2006 Author Share Posted June 19, 2006 ah, thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.