网址隐藏...

编程入门 行业动态 更新时间:2024-10-17 07:29:48
本文介绍了网址隐藏...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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=

更多推荐

网址隐藏...

本文发布于:2023-10-31 13:25:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1546214.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网址

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!