valid_email not working on IE8 |
[eluser]czetsuya[/eluser]
Hi, I've develop a simple login page that accepts a valid email as username. It works in firefox, safari, opera, ie6, ie7, mozilla, etc (tested). But unfortunately, it won't work in ie8 (OS winxp and osx) and got the error: "The <field> must contain a valid email address.". For example this email is not accepted: [email protected] IE8 Version: 8.0.6001.18702 Does anybody here know what's possibly going on? Any suggestion to debug the problem? Thanks, czetsuya
[eluser]bigtony[/eluser]
1. Are you using the valid_email checker of the Form Validation library, or some other type of checking? 2. If you echo out $this->input->post('your_email_field') what do you get?
[eluser]Benedikt[/eluser]
The eMail-Address is validated via PHP which is run on the server side. There is no reason why it should work on others and not on IE8. Maybe you have some JavaScript added which would destroy sth there? But its not a CI problem.
[eluser]czetsuya[/eluser]
Hi, 1.) Yes, I am using the one frmo Form Validation Library -my form_validation.php is defined this way: array( 'field' => 'email', 'label' => 'Email Address', 'rules' => 'required|maxlength[50]|valid_email' ) 2.) For example I enter, [email protected]. Then I get the same string. It's weird cause I don't encounter the problem on any other browser. Thanks, czetsuya
[eluser]czetsuya[/eluser]
@Benedikt Thanks, you are right about server side execution. Regarding javascript, there's none in that page. I will work and try to debug more. Regards, czetsuya
[eluser]Benedikt[/eluser]
Be sure to delete cache and cookies. Always a nice reason for problems.
[eluser]jeffpeck[/eluser]
Try to simply output print_r($_POST) to determine if your email field is being passed correctly. |
Welcome Guest, Not a member yet? Register Sign In |