网址隐藏... [英] URL hiding ...

查看:58
本文介绍了网址隐藏...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

test.html:

< script type =" text / javascript">

location =" test.php?name = blah" ;;

< / script>

test.php

<?php

name = $ _ GET ['' name''];

echo" Name is:$ name";

?>


从浏览器中, http://<服务器名称> /test.html,它将打印出来


名称是:blah


而不是显示http://< server name> /test.html,浏览器上的URL

将显示由location设置的php脚本在html文件中,即

http://< server name> /test.php?name = blah。


是否可以隐藏重定向的网址(http://< server

name> /test.php?name = blah),相反,显示原始的

一个(http:/ /< server name> /test.html).


谢谢

test.html:
<script type="text/javascript">
location = "test.php?name=blah";
</script>
test.php
<?php
name=$_GET[''name''];
echo "Name is: $name";
?>

From the browser, http://<server name>/test.html, and it will print out

Name is: blah

Instead of showing http://<server name>/test.html, the URL on the browser
will show the php script set by "location" in the html file, that is,
http://<server name>/test.php?name=blah.

Is it possible to hide the redirected url(http://<server
name>/test.php?name=blah), instead, display the original
one(http://<server name>/test.html).

Thanks

推荐答案

_GET ['' name''];

echo" Name is:
_GET[''name''];
echo "Name is:


name" ;;

?>


从浏览器中,http://< server name> /test.html,它将打印出来


名称是:blah


而不是显示http://< server name> /test.html,浏览器上的URL

将显示由location设置的php脚本。在html文件中,即

http://< server name> /test.php?name = blah。


是否可以隐藏重定向的网址(http://< server

name> /test.php?name = blah),相反,显示原始的

一个(http:/ /< server name> /test.html).


谢谢
name";
?>

From the browser, http://<server name>/test.html, and it will print out

Name is: blah

Instead of showing http://<server name>/test.html, the URL on the browser
will show the php script set by "location" in the html file, that is,
http://<server name>/test.php?name=blah.

Is it possible to hide the redirected url(http://<server
name>/test.php?name=blah), instead, display the original
one(http://<server name>/test.html).

Thanks


.oO(Sarah Tanembaum)
.oO(Sarah Tanembaum)
test.html:
< script type =" text / javascript">
location =" test.php?name = blah";
< / script>

test.php
<?php
name =
test.html:
<script type="text/javascript">
location = "test.php?name=blah";
</script>
test.php
<?php
name=


这篇关于网址隐藏...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆