Remove empty spaces when validating forgotten password
Posted: Mon May 21, 2012 6:20 am
Hi,
IN the forgotten password page, if teh entered email has a space before or after the email, it is returning 'email not found'.
How do we trim the empty spaces on either side before validating the email.
doesn't seem to work. I also tried assigning it to a variable by doing
but even that doesn't seem to work.
Please help.
Regards,
FM
IN the forgotten password page, if teh entered email has a space before or after the email, it is returning 'email not found'.
How do we trim the empty spaces on either side before validating the email.
Code: Select all
if (!isset(trim($this->request->post['email'])))
Code: Select all
$val = $this->request->post['email'];
if (!isset($val)) {
Please help.
Regards,
FM