<?php
$type=($_POST["typel"]=="")?$_GET["typel"]:$_POST["typel"]; 
$content=($_POST["content"]=="")?$_GET["content"]:$_POST["content"]; 
?>

解决方案 »

  1.   

    form 的内容要提交才会被传递
      

  2.   

    <form name="news" sction="chinaac.php" method="post" > 是action 不是sction如果接受不到就$_GET[],可是在你action里并没有?..啊
      

  3.   

    是 action 我修改过来了 但是还是不行
      

  4.   

    <form action="chinaac.php" method="POST">
    <input type="text" name="typel" value="typel的值">
    <input type="hidden" name="content" value="content的值">
    <input type="submit" value="提交">
    </form>
    chinaac.php
    <?php
    $type = $_REQUEST["typel"];
    $content = $_REQUEST["content"];
    ?>
      

  5.   

    <form action="chinaac.php?typel=suer" method="POST"> 
    <input type="hidden" name="content" value="content的值"> 
    <input type="submit" value="提交"> 
    </form> 
    chinaac.php 
    <?php 
    $type = $_REQUEST["typel"]; 
    $content = $_REQUEST["content"]; 
    ?>
      

  6.   

    楼主是不是想将连接里的typel的值和表单一起提交呀
      

  7.   

    <form name="news" action="chinaac.php?type=user" method="post" > GET接收在ACTION里就要加?type=user&content=....
      

  8.   

    <input type="submit" value="提交"> 
      

  9.   

    把$_REQUEST改成$_POST接受name的名字看看行不行
      

  10.   

    你可以把typel的东西放到表单一起发<form name="news" sction="chinaac.php?typel=suer" method="post" >
    <input type="hidden" name="content" value=" <{$Hcontent}>">这样就可以了,如果要用超链接提交,你可以用<a href="javascript:window.getElementByName('news').sumbit>">或者用Onclick调用表单提交动作。
      

  11.   

    <form action="chinaac.php" method="POST"> 
    <input type="text" name="typel" value="typel的值"> 
    <input type="hidden" name="content" value="content的值"> 
    <input type="submit" value="提交"> 
    </form> 
    chinaac.php 
    <?php 
    $type = $_POST["typel"]; 
    $content = $_POST["content"]; 
    ?>