--- [EMAIL PROTECTED] wrote:

> function alphanumeric($text){
> if (ereg("[^A-Z a-z0-9\-\']", $text)){
>   $an="N";
> }else{
> $an="Y";
> }
> return $an;
> }

I think the placement of the caret is wrong. Try:

if (ereg("^[a-zA-Z0-9\-\']", $text)) {

-Bob

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to