View Single Post

  #2 (permalink)  
Old 05-12-2008
Rik Wasmus
 
Posts: n/a
Default Re: validating user input: regex vs. filters?

On Sun, 11 May 2008 16:56:01 +0200, William Gill <noreply@example.com>
wrote:

> I have decided that Since I have to update the processing on many of my
> forms, I'm going to start them all over from scratch. Before I begin I
> thought I'd solicit comments on using the PHP regex functions vs using
> the filter functions for cleaning and validating user input.


What are the 'filter functions' you're talking about?

Besides that, validating is often just using the right tool for the job.
Is it a number, is a record in a database that should exist etc... All
depending on the desired implementation.

--
Rik Wasmus
[SPAM] Now temporarily looking for some smaller PHP/MySQL projects/work to
fund a self developed bigger project, mail me at rik at rwasmus.nl. [/SPAM]
Reply With Quote