Posted by Scott Auge on 07/26/05 07:01
In article <dc3t0g$fa9$1@news2.zwoll1.ov.home.nl>,
Willem-Jan <wjzeeuwen@home.nl> wrote:
> Hi all,
>
> Im a newbee in PHP and MySQL. Im wondering if there is a standard
> combination of functions u should use on variabels psoted by a form
> before u add them to a database. Something like:
>
> $var = trim(addslashes($_POST['test']));
>
> Thanx,
> WJ
This is what I use:
http://amduus.com/phpezine/archive/Issue2.pdf
http://amduus.com/phpezine/archive/issue2.zip
Feel free to use it. It also handles (hopefully) cross scripting (aka
someone taps some javascript into the field for the next sucker to run).
--
Available for Hire! http://amduus.com/Resumes/
[Back to original message]
|