Jump to content

array declarations that contain text character variables or values without quotations


Recommended Posts

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 by OmeGa3

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 by Christian F.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.