note 10153 deleted from language.variables.predefined by philip

From: Date: Sun, 08 Dec 2002 02:08:20 +0000
Subject: note 10153 deleted from language.variables.predefined by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40497@lists.php.net to get a copy of this message
The $HTTP_POST_VARS environment comes in handy when trying to pass variables to an embedded Perl Script. Passing variables to an embedded Perl Script via GET / $QUERY_STRING is not the greatest as IE4/5 seems to truncate URLS longer than 2048 characters .. and passing massive amounts of data through the URL is kind of messy. The $HTTP_POST_VARS is not a string like $QUERY_STRING, it is an associative array .. therefore you must convert its contents to a sting. Heres a quick method of doing so: while(list($key, $val) = each($HTTP_POST_VARS)) { $key = stripslashes($key); $val = stripslashes($val); $key = urlencode($key); $val = urlencode($val); $postString .= "$key=$val&"; } virtual("cgi-bin/perl.pl?$postString");

« previous php.notes (#40497) next »