-4
<a href="deleteresnext.php?rid=< ?php echo $row->rid ?>" 
   onclick="return confirm('Are you sure you want to cancel reservation?');" >
     Delete
</a>

我可以使用此代码检索 2 个值吗?因为我需要它到另一个 php 文件,我想通过上面的代码检索 rid 和 roomid ?

4

1 回答 1

0

是的。您可以向该 URL 添加另一个参数:

<a href="deleteresnext.php?rid=<?php echo $row->rid; ?>&roomid=<?php echo $row->roomid; ?>" onclick="return confirm('Are you sure you want to cancel reservation?');" >Delete</a>
于 2010-10-14T17:47:17.163 回答