Home >Backend Development >PHP Tutorial > 如何把一个列表中选项的值传到下个php界面中
怎么把一个列表中选项的值传到下个php界面中
if($roomID!=null)
{
$result=mysql_query("SELECT roomID,roomtype,roomsize FROM room WHERE roomID NOT IN (SELECT roomID FROM bookingroom WHERE bookingdate='$bookingdate' AND bookingtime='$bookingtime') AND roomID='$roomID'");
$num_rows = mysql_num_rows($result);
if ($num_rows==0) {
echo "
Sorry, No result found. Please search again.
";<br /> echo "<td><input type=\"submit\" name=\"submit\" value=\"Book\"onClick=\"if(confirm('Are you sure you want to book this room?'))location='insert_data.php?id=".$row['roomID']."'\")/></td>";<br />