Re: FN-FORUM: PHP form validation Q
date posted 5th January 2005 20:09
On 5 Jan 2005, at 19:54, Joe Freeman wrote:
> To validate a variable to ensure it only contains numbers, you could
> use:
> if(!ereg("^[0-9]{1,X}$",$var)){
> return "error message here";
> }
sorted, thx.
wasn't as hard as i thought it might be :-)
L.
---
Evoke Media Ltd.
t. +44 (0) 870 930 2843
w. www.evoke-media.com
"It's better to be a pirate than join the navy." - Steve Jobs ('83)