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=b lah.
Is it possible to hide the redirected url(http://<server
name>/test.php?name=b lah), instead, display the original
one(http://<server name>/test.html).
Thanks
<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=b lah.
Is it possible to hide the redirected url(http://<server
name>/test.php?name=b lah), instead, display the original
one(http://<server name>/test.html).
Thanks
Comment