Reply to Re: php from 4 to 5

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация