pappakaka Posted February 10, 2011 Share Posted February 10, 2011 Can someone explain whats wrong with this code: if ($this->email != $this->confemail){ $this->errors[] = 'The email addresses you entered did not match!'; } I'm trying to make a "Confirm email" field by comparing "email" with "confemail" and if they are not the same you should get this message 'The email addresses you entered did not match!'. But instead i get this no matter what i type into the fields? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted February 10, 2011 Share Posted February 10, 2011 var_dump() both of them and see what the difference is. Quote Link to comment Share on other sites More sharing options...
pappakaka Posted February 10, 2011 Author Share Posted February 10, 2011 Thank you i solved it! 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.