<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?
答案 0 :(得分: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>