RE: [PHP] $_POST not working with str_replace

From: Date: Fri, 26 Mar 2004 10:49:59 +0000
Subject: RE: [PHP] $_POST not working with str_replace
Groups: php.general 
Request: Send a blank email to php-general+get-181548@lists.php.net to get a copy of this message
On 24 March 2004 22:28, PHP Email List wrote: > And ? #2 are there any settings within PHP that would limit > my ability to > visually display the contents of a POST variable on a .rtf document as > opposed to being displayed on the browser? Yes -- take a look at the variables_order directive (http://uk.php.net/manual/en/configuration.directives.php#ini.variables-order) -- it's not immediately clear from its description that this is a relevant setting, but on the "Predefined variables" page (http://uk.php.net/manual/en/language.variables.predefined.php), the last sentence in the first section (just above the "PHP Superglobals" heading) says: "If certain variables in variables_order are not set, their appropriate PHP predefined arrays are also left empty." It's clear from this that if your variables_order setting does not include "P", the $_POST array will not be populated in your scripts. HTH Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#181548) next »