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, <server name>/test.html, and it will print out Name is: blah Instead of showing <server name>/test.html, the URL on the browser will show the php script set by "location" in the html file, that is, <server name>/test.php?name=blah. Is it possible to hide the redirected url(<server name>/test.php?name=blah), instead, display the original one(<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, <server name>/test.html, and it will print out Name is: blah Instead of showing <server name>/test.html, the URL on the browser will show the php script set by "location" in the html file, that is, <server name>/test.php?name=blah. Is it possible to hide the redirected url(<server name>/test.php?name=blah), instead, display the original one(<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=
更多推荐
网址隐藏...
发布评论