RE: [PHP] viewing get/post variables

From: Date: Tue, 16 Apr 2002 14:02:47 +0000
Subject: RE: [PHP] viewing get/post variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93190@lists.php.net to get a copy of this message
Read the NEWS file for PHP 4.2.0. (It should be located in the base directory of the source distro) If you're using the Windows package, try here: http://cvs.php.net/co.php/php4/NEWS?r=1.885.2.17 Jaime Bozza -----Original Message----- From: Martín Marqués [mailto:martin@bugs.unl.edu.ar] Sent: Tuesday, April 16, 2002 8:44 AM To: Christoph Starkmann; php-general@lists.php.net Subject: Re: [PHP] viewing get/post variables On Mar 16 Abr 2002 10:35, Christoph Starkmann wrote: > Hi Martín! > > > I can't remmeber how to configure php.ini so that if I get the URL > > http://localhost/index.php?var1=10 > > an echo $var1 will return 10 > > What I mean, is that _GET["var1"] exists, but I want $var1 to > > be available. > > If $var1 is not available directly, your safe_mode seems to be > turned on. > One way would be to turn safe_mode off again: change the line > > safe_mode=On > to > safe_mode=Off safe_mode is Off. > in your php.ini. > > The safer way would be to prepare $var1, for example like this: > > $var1 = $HTTP_GET_VARS["var1"]; > > Now you can use $var1. Before I upgraded PHP form 4.0.6 to 4.2.0RC2 it worked directly, without having to pass the $HTTP_GET_VARS. Saludos... :-) -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? ----------------------------------------------------------------- Martín Marqués | mmarques@unl.edu.ar Programador, Administrador, DBA | Centro de Telematica Universidad Nacional del Litoral ----------------------------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#93190) next »