note 39046 deleted from function.urldecode by nlopess
| From: | nlopess@php.net | Date: | Thu, 15 Jan 2004 14:32:18 +0000 |
| Subject: | note 39046 deleted from function.urldecode by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-63611@lists.php.net to get a copy of this message | ||
Note Submitter: office@hostingmotor.com
----
To add only lang value if you using GET[var] and keep all old getted vars use follow :)
<?
$a = explode('&', $_SERVER['QUERY_STRING']);
$i = 0;
while ($i < count($a)) {
$b = split('=', $a[$i]);
if(htmlspecialchars(urldecode($b[0])) != "lang") {
echo "<input name=\"".htmlspecialchars(urldecode($b[0]))."\"
type=\"hidden\"
value=\"".htmlspecialchars(urldecode($b[1]))."\">\n";
}
$i++;
}
?>