Re: Form containing 2 menus not returning anything

From: Date: Sat, 23 Oct 2004 14:56:47 +0000
Subject: Re: Form containing 2 menus not returning anything
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-200154@lists.php.net to get a copy of this message
Ken Tozier wrote:
Thanks John, that did the trick. I'm curious though, the PHP book I'm reading (PHP and PostgeSQL, Advanced web programming) specifically states that it's not necessary to grab form variables in this way, claiming PHP extracts all form variables behind the scenes for you. Was my original syntax something that used to be supported but has since been deprecated?
It has not been deprecated but depends on register_globals setting being on. The recomended way is to have this setting off and use $_GET, $_POST etc superglobals, it will help you keep your code secure. More here: http://sk2.php.net/manual/en/security.globals.php
Ken On Oct 23, 2004, at 10:13 AM, John Holmes wrote:
if(isset($_POST['view'])) {
    echo $_POST['publication'] . '<br />' . $_POST['view'];
}


« previous php.general (#200154) next »