vendredi 5 décembre 2014

Error with passing parameters


Vote count:

0




When passing parameters to the login function in the authenticate class i get these errors:


Notice: Undefined index: user in C:\Users\Adam\PhpstormProjects\website\login.php on line 11 Notice: Undefined index: pass in C:\Users\Adam\PhpstormProjects\website\login.php on line 12


this is my function in the authenticate class



public function login($user,$pass){}


and this is the login.php where the params are getting passed from.



$authenticateUser = new authenticate();
$queryResult = $authenticateUser->login(($email),($password));


does anybody understand why i am getting these errors?



asked 1 min ago







Error with passing parameters

Aucun commentaire:

Enregistrer un commentaire