Re: FN-FORUM: PHP form validation Q
date posted 6th January 2005 17:08
On 6 Jan 2005, at 17:41, Joe Freeman wrote:
> You could use:
> $var=str_replace(" ","",$var);
> Before doing the is_numeric(), but regular expressions are so much
> more flexible if you wanted to use them for the other fields etc.
yea, i think i'm going to play more with the regexp idea.
it would be nice to expand this form, as you say, to validate content
in other fields (DOB for instance)
off to play now...
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)