是否可以从此代码中检索2个值?

时间:2010-10-14 17:43:20

标签: php mysql delete-row corresponding-records

<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?

1 个答案:

答案 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>