On 4/11/2015 10:04 AM, Richard Townsend-Rose wrote:
> Jerry
>
> thanks for that
>
> first to stop injection i have as below:
>
> this one script process's seven different foprms with some common and some other variables - never been a problem.
>
> but if that is what has to happen so be it.
>
> but never the less why does extract not work ?????
>
> richard
>
<snip code>
There's never a problem until something bad happens. Then it's a huge
problem. And your code does find some potential problems. But it won't
stop a good hacker.
Best is to handle the variables as they occur in $_POST and not try to
import unknown variables into your script. This way any potentially bad
stuff is isolated and won't affect the rest of your code.
P.S. When replying, it's considered good form to quote the applicable
parts of the message you are replying to, then reply inline or following
the copied message. Most of us use real usenet readers instead of the
poor Google interface to usenet, and previous messages may or may not be
available.