OmeGa3 Posted January 10, 2013 Share Posted January 10, 2013 (edited) Hello the community, i have create a fonction wich check via a "class validate" if the email & password are well formated i didnt include the validate class & the code here is not full the main problem is i have this error Error: There are 2 array declarations that contain text character variables or values without quotations:array( $_POST['email'], $_POST['email'] ) ); array( $_POST['password'], $_POST['password'] ) ); $validEmail = new ValidateEmail( array( $_POST['email'], $_POST['email'] ) ); $validpass = new ValidatePassword( array( $_POST['password'], $_POST['password'] ) ); if ( $validEmail->isValid( ) && $validpass->isValid( ) ) i have tried with "" but it not work $validEmail = new ValidateEmail( array( $_POST["email"], $_POST["email"] ) ); $validpass = new ValidatePassword( array( $_POST["password"], $_POST["password"] ) ); if ( $validEmail->isValid( ) && $validpass->isValid( ) ) could you help me to correct the syntax please ? thx you very much Edited January 10, 2013 by OmeGa3 Quote Link to comment Share on other sites More sharing options...
Christian F. Posted January 11, 2013 Share Posted January 11, 2013 (edited) That error message seems to be a custom error message, and not related to PHP at all. Check the code to find out where it's triggered. Once you know that you can find out why, and thus what the actual problem is. Edited January 11, 2013 by Christian F. 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.