Like this:
---------------------------------- <?php preg_match('/^([^?]*)\?.*/',$REQUEST_URI,$urlMatch); $bareUrl = $urlMatch[1];
print "<html><head><title></title></head><body><form method="post" action=\"".htmlspecialchars($bareUrl)."\">";
foreach ($_GET as $key => $val) { $key = htmlspecialchars($key); $val = htmlspecialchars($val); print "<input type='hidden' name=\"$key\" value=\"$val\" />"; } print "</form>"; print "<script type='text/javascript'>document.forms[0].submit();</script>"; print "</body></html>"; ?> ---------------------------------
There may be a way to do it without Javascript. This does actually reload the page, I guess, but it's minimal traffic for doing so.
-Felipe Gasper
Quoth Александр Ильяшов on 10/7/2004 8:08 AM...
Hello.
Do you know how to change adress such "http://server.lg.ua/index.php?par1=temp1&par2=temp2..." to "http://server.lg.ua/" without reloading page? I saw it in phpmyadmin where long adresses change to short.
sorry my English
-- Alexander ICQ: 244-030-537 Odigo: silya@xxxxxxxxx
-- Quidquid latine scriptum sit altum viditur. Si hoc legere scis, nimis eruditionis habes.
Easier web browsing: http://mozilla.org
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php