網站:www.matka-opas.com/ahaa4.php 如果我推SEARCH-1然後SEARCH-2,它可以正常工作, 但它是如何通過一個搜索按鈕來完成的?表單變量通過一個搜索按鈕?
<?php
$depairport = $_POST['depairport'];
$ddestination = $_POST['ddestination'];
$ddday = $_POST['ddday'];
$depmonth = $_POST['depmonth'];
$depyear = $_POST['depyear'];
$retday = $_POST['retday'];
$retmonth = $_POST['retmonth'];
$retyear = $_POST['retyear'];
$aikuisia = $_POST['aikuisia'];
$osoite = $depairport . $ddestination . $ddday . $depmonth . $retday . $retmonth;
?>
<form method="post">
<input type="submit" value="SEARCH 1">
<a href="http://www.travelstart.fi/combo/ <?php echo $osoite; ?>" ><input type="submit" value="SEARCH 2"></a>
謝謝! ]
至於我理解你想發佈你的表單,在你的php中計算url並重定向到旅遊網站上的那個url? – Jan 2010-11-11 12:09:11