register_globals=off

From: Date: Sun, 03 Dec 2000 16:24:50 +0000
Subject: register_globals=off
Groups: php.general 
Request: Send a blank email to php-general+get-28445@lists.php.net to get a copy of this message
As a newbie to PHP and HTTP, I am somewhat confused about passing data between pages. Currently, I have register_globals =Off and track_vars=On. Then I use Hidden POST fields to pass the data and $HTTP_POST_VARS[] to retrieve it. If I have register_globals=On, then I would not have to use $HTTP_POST_VARS[], correct? What is the preferred setup? +++ Another question I have is about passing data using Sockets. In some situations I will check for a variable and then want to Jump to another page. For example, if CancelBtn=Cancel (the cancel button was pressed on a form), I will open a socket. Here is an example: //This will open a socket and send the data to DisplayPhotos if ($CancelBtn) { $http = new http; //Use class $fp = $http->http_fget("209.204.172.137", $path . "Review.php?" . "SID=" . $sessionid . "&PhotoSet=" . $PhotoSet . "&clFirst=" . urlencode($clFirst) . "&clLast=" .urlencode($clLast) . "&selCompany=" . urlencode($selCompany) . "&selTime=" . urlencode($selTime) . "&TripDate=" . urlencode($TripDate)); if($fp) { print '<BASE HREF="' . $url . 'Review.php"><p>'; fpassthru($fp); }; exit; }; Is there a better method for doing this? Many thanks........... Todd -- Todd Cary Ariste Software todd@aristesoftware.com

« previous php.general (#28445) next »