note 34540 deleted from function.parse-url by philip
| From: | philip@php.net | Date: | Mon, 27 Mar 2006 20:49:39 +0000 |
| Subject: | note 34540 deleted from function.parse-url by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106777@lists.php.net to get a copy of this message | ||
Note Submitter: claude_minette at hotmail dot com
----
if you need, (for a reason or another), to get back the query as variables in your new page, use
this... ;-)
$origin=$_SERVER["HTTP_REFERER"];
$tab=parse_url($origin);
$query=$tab["query"];
$variables=explode("&",$query);
for ($i=0;$i<=count($variables);$i++){
$tab=explode("=",$variables[$i]);
$$tab[0]=$tab[1];
}
It seems to be working... ;-)
Min's