我用一个form来post一个参数“/3/1/"去另一个页面,但用$_REQUEST获取不到,用“123”试过可以获得,用“/”试不能获得,初步怀疑是"/"引起的错,请各位老大帮忙看看

解决方案 »

  1.   

    html是什么,php是什么,粘上来看
      

  2.   

    test.php
    document.getElementById("weburl").value="/3/1";
    document.getElementById("myform").submit();
    document.getElementById("myform").action="1.php";
    document.getElementById("myform").method="post";
    document.getElementById("myform").target="_blank";1.php
    <script>
    function test(id)
    {
     alert(id);
    }
    </script>
    <body onload="test(<?=$_POST["weburl"]?>)">
      

  3.   

    当然不行啦
    <body onload="test('<?=$_POST["weburl"]?>')">