比如 点击 链接  发送数据 HTTP_HOST 到  link.php
然后 link.php 根据数据 转向到到指定 链接。怎么搞

解决方案 »

  1.   


      Get方法,$_GET['test']  Post方法,$_POST['test']  
      

  2.   

     这种写法?呵呵,不知道自己看看
    include_once("comm.php");
     $conn = mysql_connect("localhost","root","11") or die("无法建立连接!"); mysql_select_db("lyb") or die(mysql_error()."数据库无法打开"); $title = $_POST['title']; $type = $_POST['type']; $content = $_POST['content']; $date_time = date("Y-m-d H:m:s"); $author = $_SESSION['user'];
      

  3.   


    <?php
    if(isset($_GET['param'])){
      header("Location:index.php");
    }
    ?>
    <a href="link.php?param=123">link</a>
      

  4.   

    打比方连接 <a href="test.php?id=5">TEST</a>
    //test.php
    <?php
    $id = @$_GET['id'];
    if($id==5)
    echo "window.location.href=\"test1.html\"";
    else
    echo "window.location.href=\"test2.html\"";
    ?>