Re: [PHP] HTTP_GET_VARS VS. _GET

2003-09-14 Thread Larry E . Ullman
I notice the use of _GET in some messages. Is this the same as HTTP_GET_VARS[]? More or less. $_GET was added in version 4.1 and has an added advantage of being global in scope (it's a superglobal). Where in the manual is this documented? http://www.php.net/release_4_1_0.php

RE: [PHP] HTTP_GET_VARS[]

2003-01-30 Thread Matt Schroebel
-Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:02 AM Subject: [PHP] HTTP_GET_VARS[] The issue I am having now is that I have the editsoftwareassest.php's form action set to POST to a script called updatesoftwareasset.php

Re: [PHP] HTTP_GET_VARS[]

2003-01-30 Thread Mike Tuller
I am using PHP 4.3.0. it looks a little confusing because I am not using the $_POST when calling variables, but that is because before that script I have this. $title = $_POST['title']; $version = $_POST['version']; $developer = $_POST['developer']; $serial_number = $_POST['serial_number'];

RE: [PHP] HTTP_GET_VARS[]

2003-01-30 Thread Matt Schroebel
$query = UPDATE assets SET title = '$title', version = '$version', developer = '$developer', serial_number = '$serial_number', WHERE asset_id = '$HTTP_GET_VARS[id]' ; Change the var to '{$HTTP_POST_VARS['id']}' (with the curly braces since the array reference is inside a double

Re: [PHP] $HTTP_GET_VARS

2003-01-18 Thread Philip Olson
Everyone from this thread needs to reread this: http://www.php.net/variables.external Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $HTTP_GET_VARS

2003-01-17 Thread Rick Emery
Show us your code - Original Message - From: Mike Tuller [EMAIL PROTECTED] To: php mailing list [EMAIL PROTECTED] Sent: Friday, January 17, 2003 4:05 PM Subject: [PHP] $HTTP_GET_VARS I am following an example in a book and have run into a problem with a script that I am trying to run

Re: [PHP] $HTTP_GET_VARS

2003-01-17 Thread Mike Tuller
Nevermind. When copying my code to show you I noticed I have HTTP_GET_VARS, instead of $HTTP_GET_VARS, and now everything works. Time to go home I guess. On Friday, January 17, 2003, at 04:22 PM, Rick Emery wrote: Show us your code - Original Message - From: Mike Tuller [EMAIL

Re: [PHP] $HTTP_GET_VARS

2003-01-17 Thread Matt
- Original Message - From: Mike Tuller [EMAIL PROTECTED] To: php mailing list [EMAIL PROTECTED] Sent: Friday, January 17, 2003 5:05 PM Subject: [PHP] $HTTP_GET_VARS I am following an example in a book and have run into a problem with a script that I am trying to run under PHP 4.3.0.

Re: [PHP] $HTTP_GET_VARS

2003-01-17 Thread Jim Lucas
checkout the most recent version of the help documents from php.net. it will tell you. something to do with $_GET, i think... Jim - Original Message - From: Mike Tuller [EMAIL PROTECTED] To: php mailing list [EMAIL PROTECTED] Sent: Friday, January 17, 2003 2:05 PM Subject: [PHP]

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-14 Thread John Negretti
Jason, What is the difference? Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Monday 14 October 2002 08:36, John Negretti wrote: Marco, I was reading that there were some security risks with register-globals. Is this the same thing

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-14 Thread Sascha Cunz
http://localhost/test.php?var=5 results in (global scope) $var = 5; // Register globals on $HTTP_GET_VARS['var'] = 5; // Always (?) $_GET['var'] = 5; // With newer versions of PHP To access this from a function: function x() { global $var; globsl $HTTP_GET_VARS; echo $var.'BR';

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-13 Thread Marco Tabini
Try using global $HTTP_GET_VARS; at the beginning of your function. $HTTP_GET_VARS has global scope, and by default PHP isolates functions from the parent scope. Marco On Sun, 2002-10-13 at 16:39, John Negretti wrote: Hello All, I am calling a particular function. Within that

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-13 Thread John Negretti
Marco, I was reading that there were some security risks with register-globals. Is this the same thing as global. John Negretti www.ideablue.com Marco Tabini [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Try using global $HTTP_GET_VARS; at the

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-13 Thread Jason Wong
On Monday 14 October 2002 08:36, John Negretti wrote: Marco, I was reading that there were some security risks with register-globals. Is this the same thing as global. No, they're totally different things. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software