"The Script Smiths - PHP/PERL Developers" <mh2@isis.co.za> wrote in message news:<3efaa8fa$0$237@hades.is.co.za>...
> "Sandwick" <lgs@sarreid.com> wrote in message
> news:2cfb9c1d.0306251136.2beba16d@posting.google.c om...
> >
> > $length = strlen($n);
> > if ( $lenght <= 3 )
> > {
>
> Be careful, you actually have two different variables here!!
> Notice the spelling on the if (..), $lenght is spelt wrong.
> This causes PHP to create another variable, so its value will be undefined
> (probably empty, but in my experience I leanred _never_ to assume a default
> value given by a compiler/interpreter).
>
>
> Thanks,
> Mark
> ----------------------------------------------------------------------------
That was it.

Sometimes you cannot see the forest for the trees !!!!

Thanks for the help

// Larry