$_GET 这个数据,如何接收

WBOY
Release: 2016-06-13 13:36:09
Original
915 people have browsed it

$_GET 这个数据,怎么接收
比如 点击 链接 发送数据 HTTP_HOST 到 link.php


然后 link.php 根据数据 转向到到指定 链接。怎么搞

------解决方案--------------------

PHP code

<?php if(isset($_GET['param'])){
  header("Location:index.php");
}
?>
<a href="link.php?param=123">link</a>
<br><font color="#e78608">------解决方案--------------------</font><br>打比方连接 <a href="test.php?id=5">TEST</a><br>//test.php<br><?php <br />$id = @$_GET['id'];<br>if($id==5)<br>echo "window.location.href=\"test1.html\"";<br>else<br>echo "window.location.href=\"test2.html\"";<br>?> <div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template