Re: [PHP] viewing get/post variables

2002-04-16 Thread Jason Wong
On Tuesday 16 April 2002 21:39, Tyler Longren wrote: You shouldn't have to do anything to php.ini to get that. You should have a variable called $var1 on index.php already. Just: if ($var1 != ) { print $var1; } else { print var1 is empty; } Tyler Longren Captain Jack

RE: [PHP] viewing get/post variables

2002-04-16 Thread Jaime Bozza
]] Sent: Tuesday, April 16, 2002 8:44 AM To: Christoph Starkmann; [EMAIL PROTECTED] 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

RE: [PHP] viewing get/post variables

2002-04-16 Thread Jaime Bozza
, April 16, 2002 9:25 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] viewing get/post variables On Mar 16 Abr 2002 11:02, Jaime Bozza wrote: Read the NEWS file for PHP 4.2.0. (It should be located in the base directory of the source distro) You're talking about: - ACHTUNG!! register_globals defaults

RE: [PHP] viewing get/post variables

2002-04-16 Thread Christoph Starkmann
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

Re: [PHP] viewing get/post variables

2002-04-16 Thread Tyler Longren
You shouldn't have to do anything to php.ini to get that. You should have a variable called $var1 on index.php already. Just: if ($var1 != ) { print $var1; } else { print var1 is empty; } Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original

Re: [PHP] viewing get/post variables

2002-04-16 Thread Martín Marqués
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

Re: [PHP] viewing get/post variables

2002-04-16 Thread Martín Marqués
On Mar 16 Abr 2002 10:39, Tyler Longren wrote: You shouldn't have to do anything to php.ini to get that. You should have a variable called $var1 on index.php already. Wrong. I get NULL from the variable I'm passing. -- Porqué usar una base de datos relacional cualquiera, si podés usar

Re: [PHP] viewing get/post variables

2002-04-16 Thread Martín Marqués
On Mar 16 Abr 2002 10:50, Jason Wong wrote: - Original Message - From: Martín Marqués [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 16, 2002 8:29 AM Subject: [PHP] viewing get/post variables I can't remmeber how to configure php.ini so that if I get the URL

Re: [PHP] viewing get/post variables

2002-04-16 Thread Martín Marqués
On Mar 16 Abr 2002 11:02, Jaime Bozza wrote: Read the NEWS file for PHP 4.2.0. (It should be located in the base directory of the source distro) You're talking about: - ACHTUNG!! register_globals defaults to 'off' now !!! Yes, but phpinfo() says that register_globals is On!! Any way, I

Re: [PHP] viewing get/post variables

2002-04-16 Thread Steve Edberg
You might be thinking of the register_globals parameter here, instead of safe_mode: http://php.he.net/manual/en/configuration.php#ini.register-globals It is, in general best to keep this off so that you can explicitly validate user input. If you trust the POST or GET data, though, you can

Re: [PHP] viewing get/post variables

2002-04-16 Thread Martín Marqués
On Mar 16 Abr 2002 11:33, Steve Edberg wrote: You might be thinking of the register_globals parameter here, instead of safe_mode: http://php.he.net/manual/en/configuration.php#ini.register-globals It is, in general best to keep this off so that you can explicitly validate user input.