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? Link to comment https://forums.phpfreaks.com/topic/227260-confim-email-address-problem/ 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. Link to comment https://forums.phpfreaks.com/topic/227260-confim-email-address-problem/#findComment-1172298 Share on other sites More sharing options...
pappakaka Posted February 10, 2011 Author Share Posted February 10, 2011 Thank you i solved it! Link to comment https://forums.phpfreaks.com/topic/227260-confim-email-address-problem/#findComment-1172312 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.