|
Posted by Rik Wasmus on 09/27/07 01:02
On Thu, 27 Sep 2007 02:55:12 +0200, RageARC <ragearc@gmail.com> wrote:
>> VALUES ('".$first_name."','".$last_name."','".
>> $email."','".$state."','".$city."','".$comment."')";
>
> This should be $_POST['first_name'] and such ;), because that's the
> information that comes from the form. And wow... people still use
> register_globals? I mean, no offense, but it's awkward, when one NEVER
> used them.
Well, I did, years and years ago, when I just started fiddling about in
PHP. Still, more then half the jobs I get hired for to adjust existing
code depend on it some way or another. Old habits, and old code, die hard
I suppose.
--
Rik Wasmus
[Back to original message]
|