note 88396 added to faq.using

From: Date: Thu, 22 Jan 2009 10:37:25 +0000
Subject: note 88396 added to faq.using
Groups: php.notes 
Request: Send a blank email to php-notes+get-149647@lists.php.net to get a copy of this message
In PHP4, when you post the following form element, <input type="text" name="xyz">, you can just refer to it on the "action" page as $xyz to access it. In PHP5, however, you have to refer to it as $_POST['xyz'] to access it. In similar fashion you have to refer to a GET variable as $_GET['abc'] in PHP5 and not just $abc. Is there any way that you can configure PHP5 to just refer to $xyz and not to $_POST['xyz'] or to $abc and not to $_GET['abc']? ---- Server IP: 69.147.83.197 Probable Submitter: 196.35.158.178 ---- Manual Page -- http://www.php.net/manual/en/faq.using.php Edit -- https://master.php.net/note/edit/88396 Del: integrated -- https://master.php.net/note/delete/88396/integrated Del: useless -- https://master.php.net/note/delete/88396/useless Del: bad code -- https://master.php.net/note/delete/88396/bad+code Del: spam -- https://master.php.net/note/delete/88396/spam Del: non-english -- https://master.php.net/note/delete/88396/non-english Del: in docs -- https://master.php.net/note/delete/88396/in+docs Del: other reasons-- https://master.php.net/note/delete/88396 Reject -- https://master.php.net/note/reject/88396 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#149647) next »