<input type="button" value="PDF_PRINT" class="button" onclick="document.getElementById('printer').src='./sample_print001.php?$print='+document.getElementById('print').value+'$printtype='+document.getElementById('printtype').value+''">
这是我写的一个button 跳转到sample_print001.php后 有什么方法可以让我 在sample_print001里取到后面的2个值 谢谢

解决方案 »

  1.   

    用 $_GET ?或者通过$_SERVER['REQUEST_URI']取正则
      

  2.   

    sample_print001.php?$print=
    还出现$print,难道这也是一个要传的串,print_r($_GET);就能看到你传递过的get参数.
      

  3.   

    sample_print001.php?$print,你这个要传的还是个变量的变量啊。iframe的话,你可以用GET方法接收,试试var_dump($_GET)