albionite Posted September 27, 2013 Share Posted September 27, 2013 This is my first post so hope its in the right category. I'm having to upgrade PHP from 5.3.5 to 5.4.17, at the same time i'm having to upgrade Apache to 2.4.4 as were previosuly using VC6 versions of PHP. At the moment this is in a test environment before we start upgrading Live servers. The PHP & Apache upgrades seemed to have worked fine. We are now testing our applications and all seems good so far. BUT i use Firefox by default and most end-users use IE, due to their corporate set up. I cannot get the applications to work using IE of any version (i've tried 8, 9 & 10). When i enter the URL to launch the application I get to the login screen OK, but i cannot login. I'm using the same credentials as with testing in Firefox, but in IE the screen just refreshes itself, which is usually an indication that the username or password are wrong, but i know they're correct. It also works ok in Chrome. I have this installed on WIndows 2008 R2 64 bit, and also on a Windows 7 Home Premium 64 bit notebook, both have the same problem. I've been looking for an answer but can't find anything. The closest i came was perhaps the keyborad enter/return button doesn't work in IE and to use the applications 'submit' button instead, but no luck there. Any suggestions would be very welcome. Quote Link to comment https://forums.phpfreaks.com/topic/282472-php-not-working-in-ie-8910/ Share on other sites More sharing options...
Ch0cu3r Posted September 27, 2013 Share Posted September 27, 2013 PHP is not aware what your browser is. Your web browser sends a request to the server, the server pushes that request to the PHP interpreter which executes your php code and sends the result back to the server. The server passes this back to the browser. the browser parses the HTML/CSS//whatever and renders the page. PHP code never gets executed at the browser level, browser compatibility should not be an issue. Does everything else work with your app apart from the login form? How are you processing the login form, what is the html for your login form. Quote Link to comment https://forums.phpfreaks.com/topic/282472-php-not-working-in-ie-8910/#findComment-1451382 Share on other sites More sharing options...
albionite Posted September 27, 2013 Author Share Posted September 27, 2013 In Firefox & Chrome everything works fine, a lot of testing has been done, inserting & deleting data, graphs & charts, windows batch jobs to import mass data, reports and so on. In IE i just can't login to the system to do any tests, it is acting in the same way as if i'm entering the username and/or password wrong, where the screen refreshes to leave the username/password fields blank. Previously in 5.3.5 & Apache 2.2.22 everything worked fine for any browser, its only since the upgrade to 5.4.17 & Apache 2.4.4 that this problem has started. The html for the login screen is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>RB Performance - PMQA</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><script type='text/javascript'></script><script type='text/javascript'>function sf() {if (document.loginform.usr_username) document.loginform.usr_username.focus(); else if (document.loginform.usr_email) document.loginform.usr_email.focus();}</script><style type="text/css"> @import url(/skins/css/styles.css);</style></head><body onload="sf();"><img src="/skins/images/rb_performance_header.gif" alt="RB Performance - Performance Management and Quality Assurance" border="0" /><div id='sign_container'> <div id='sign_header'>RB Performance V4.0.5</div><div id='sign_content'> <div id='msg-success' style='text-align:center;'>Please login</div> <form action='/index.php?mode=login' method='post' name="loginform"> <input type="hidden" name="mode" value="login" /> <div id='sign_form'> <table width='100%' border='0' cellpadding='0' cellspacing='0'> <tr> <td width='80'><label for='username'>Username:</label></td> <td><input type='text' id='username' name='usr_username' value='' style='width:255px;'/></td> </tr> <tr> <td><label for='password'>Password:</label></td> <td> <input type='password' id='password' name='usr_password' value='' style='width:255px;'/> </td> </tr> <tr> <td></td> <td><a href='?mode=login&forgot=1' title='Forgotten Login Details? - Click Here'">Forgotten Login Details? - Click Here</a></td> </tr> <tr> <td colspan='2' align='center'><input type='submit' name='button_sign_in' value='Sign In'/></td> </tr> </table> </div> </form></div> <div id='sign_footer'> © RB Performance Limited 2008-2013</div></div><p align="center" style="font-family: arial, verdana, geneva, helvetica;font-size: xx-small;font-style: normal;color: #999999;">Programs and data held on RB Performance Limited systems are PRIVATE PROPERTY.<br />Unauthorised access is prohibited and is contrary to the Computer Misuse Act 1990, which may result in criminal offences and a claim for damages.</p></body></html> Thanks Quote Link to comment https://forums.phpfreaks.com/topic/282472-php-not-working-in-ie-8910/#findComment-1451387 Share on other sites More sharing options...
mac_gyver Posted September 27, 2013 Share Posted September 27, 2013 you need to debug what your code is doing once you submit the form. i'm willing to bet the login form is doing what it is supposed to, but it goes to the login processing code, doesn't login, and redisplays the log in form. what is the form processing code at - '/index.php?mode=login' Quote Link to comment https://forums.phpfreaks.com/topic/282472-php-not-working-in-ie-8910/#findComment-1451388 Share on other sites More sharing options...
albionite Posted September 27, 2013 Author Share Posted September 27, 2013 we now think this is a cookies issue - IE is not saving our cookies so the authentication data is lost when the user logs in. Not sure if thats PHP or not. Quote Link to comment https://forums.phpfreaks.com/topic/282472-php-not-working-in-ie-8910/#findComment-1451426 Share on other sites More sharing options...
Ch0cu3r Posted September 27, 2013 Share Posted September 27, 2013 Maybe a stab in the dark but what is IE's security ( Internet Options > Security) setting set to? It may be too high to allow cookies or you may also want to check the privacy tab too. Quote Link to comment https://forums.phpfreaks.com/topic/282472-php-not-working-in-ie-8910/#findComment-1451427 Share on other sites More sharing options...
mac_gyver Posted September 27, 2013 Share Posted September 27, 2013 in the browsers it does/still work, are you already logged in? try logging out in them and see if you get the same symptom. if you set php's error_reporting to E_ALL and either display_errors to ON or log_errors to ON, you will likely get php detected errors displayed/logged that would help you pin down the problem. if you want a forum's help, you will need to post the relevant code so that someone might see what it is doing that could cause the symptom. i'm betting at this point that you have some output being sent by your file that is preventing the cookies from working, but the browser's that do work are already logged in and the cookie code isn't being executed. Quote Link to comment https://forums.phpfreaks.com/topic/282472-php-not-working-in-ie-8910/#findComment-1451428 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.