Re: Make sure only numbers are in field

From: Date: Mon, 08 Jan 2001 20:42:18 +0000
Subject: Re: Make sure only numbers are in field
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-33305@lists.php.net to get a copy of this message
> I have this to check for anything other than a number: > ------------------------------------- > if( ereg( "^[0-9]$+", $amount )) { > ------------------------------------- > Does anyone know how to make sure it is a number but not be limited to > 0-9, > I want it to go from 0-infinite if( ereg( "^[0-9]+$", $amount )) { ^^ witty -- Sent through GMX FreeMail - http://www.gmx.net

« previous php.general (#33305) next »