在這裏我想通過動態生成的href鏈接圖像將動態變量'$ cost'傳遞給另一個php頁面'onewaytrip_passanger_data.php'。 href鏈接圖像的代碼寫入php標籤 這是我的代碼。但它不工作..我想通過動態href鏈接圖像通過php變量到另一個php頁面
<?php
$cost=$row['fare'];
echo '<a href="onewaytrip_passenger_data.php?fare="$cost""><img src="images/bookbutton.png" width="85" height="20" /></a>';
?>
請檢查您的報價。 – aldrin27