By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,965 Members | 1,702 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,965 IT Pros & Developers. It's quick & easy.

eregi Help Needed

P: n/a
Can someone please tell me why this function always evaluates to true
regardless of what I enter?

Thanks...
if (!eregi ("A-Za-z", $frm_member_name))
{
// invalid characters
$php_login_status = "not ok";
}

Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Ralph Freshour" <ra***@primemail.com> wrote in message
news:4m********************************@4ax.com...
Can someone please tell me why this function always evaluates to true regardless of what I enter?

Thanks...
if (!eregi ("A-Za-z", $frm_member_name))
{
// invalid characters
$php_login_status = "not ok";
}


if (!eregi ("^[a-z]+$", $frm_member_name))
{
// invalid characters
$php_login_status = "not ok";
}

Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.