我想将参数传递给框架中的 php 文件,但我该怎么做。目前我已经尝试过这种方法(我不确定这种方法)通过将id
值传递给 frame2.php 来将参数传递给 frame2.php
<frameset cols = "25%, *">
<frame src ="frame1.php" />
<frame id="<?php echo "$pid"; ?>" src ="frame2.php" />
</frameset>
在frame2.php
我尝试使用此方法调用该 ID
<?php
$pid=$_GET['id']; //also tried $_POST['id'];
echo "$pid";
<--other php codes-->
?>
但它不工作......你能告诉我为什么它不工作或我可以使用什么其他方法来传递参数
高级感谢您的帮助