我試圖打開的iFrame的URL中的iFrame源傳遞變量,在PHP
但是我不能似乎正確傳遞IFRAME SRC $ URL =?
function Payment()
{
$userId = trim($_REQUEST['userId']);
$venueId = trim($_REQUEST['venueId']);
$amount = trim($_REQUEST['amount']);
$quantity = trim($_REQUEST['quantity']);
$order = trim($_REQUEST['order']);
$url = "https://direct.tranzila.com/weenxmobile/mobile.php?sum=".$quantity."¤cy=".$amount;
//open $url in iframe <?php echo $url; " <iframe src="<?php echo $url; width="100%" height="100%" ></iframe>
?>
<iframe src="<?php echo $url; ?>" width="100%" height="100%" ></iframe>
<?php
}
它打開頁面,但提交按鈕給我「系統錯誤」但是,如果我修改這個代碼和簡單的放網址的iframe源裏面,它工作得很好。
你似乎不會*嘗試*傳遞它。 – Quentin
@Quentin我試過了,但效果不好?怎麼辦是我的問題 –
@Quentin請檢查我編輯的代碼,我已經放置了示例url –