"Matt Williams" <[EMAIL PROTECTED]> wrote in message
| > or even just
| > elseif  (!eregi("[^a-zA-Z]"),$num)) { }
| But that would not stop other characters.
| M@

Whoops!  Careless of me.  The line should read, and as I tested it,

elseif (eregi("[a-zA-Z]",$num)) { }

Do you see any problem with this?

I have tried with every type and mix of input that I can think of and
was successful in denying all but digit inputs, but I have little
confidence in what I am doing.  With your examples I am at least
coming to some understanding of Dario Gomes article on PHPBuilder.


PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to