Welcome Guest, Not a member yet? Register   Sign In
$this->load->helper('email'); issue
#1

[eluser]EEssam[/eluser]
Code:
$this->load->helper('email');


if (valid_email('[email protected]'))
{
        echo 'good';
}

good is never printed. Why?

Please help.
#2

[eluser]Derek Allard[/eluser]
where is the valid_email() function defined?
#3

[eluser]EEssam[/eluser]
I just got this working. The var $email had a space at the end so when I used trim() it worked.

The function is defined here anyway:

http://ellislab.com/codeigniter/user-gui...elper.html

Smile

Thanks.
#4

[eluser]Derek Allard[/eluser]
You bet! Glad it turned out to be something simple. I meant in my last post "are you extending the helper, and if so..." but... blah. Wink




Theme © iAndrew 2016 - Forum software by © MyBB