表單:
<form action="http://192.168.10.253:82/montim/montime-bcp/montime/vendosja-porosise/listasearch.php" method="post">
<select name="kategoria">
<option value="klienti">Klienti</option>
<option value="id">ID</option>
</select>
<input type="submit" value="Submit" />
</form>
你listasearch.php
<?php $kategoria = $_POST['kategoria']; echo $kategoria; ?>
如果你想GET方法(與kategoria = kategoria?):
<form action="http://192.168.10.253:82/montim/montime-bcp/montime/vendosja-porosise/listasearch.php" method="get">
<select name="kategoria">
<option value="klienti">Klienti</option>
<option value="id">ID</option>
</select>
<input type="submit" value="Submit" />
</form>
你listasearch.php
<?php $kategoria = $_GET['kategoria']; echo $kategoria; ?>
?kategoria = kategoria所以你想使用GET或POST? –
你需要在表單中添加一個'submit'按鈕。 – Barmar
Barmar是的,我jut張貼了這個示例代碼,但我的表格更大... 基督徒,發佈會更好.. – Alb