note 34540 added to function.parse-url
| From: | claude_minette at hotmail dot com | Date: | Wed, 30 Jul 2003 10:00:39 +0000 |
| Subject: | note 34540 added to function.parse-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52999@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.parse-url.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34540
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34540&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34540&report=yes