我想將信息從HTML表單傳遞到PHP頁面。我的問題是,表單中的數據沒有被提交。我究竟做錯了什麼 ?HTML到PHP表單數據未提交
HTML表單
<div id="go">
<form method="get" action="client_authorized.php">
<fieldset>
<input type="text" name="query" class="input-text" />
<input type="submit" value="Secure Client Access" class="input-submit" />
</fieldset>
</form>
</div>
client_authorized.php
<?php
print $_GET['query'];
?>
爲什麼你把你的提交按鈕放在另一個表單中?當您從該表單提交時,您會丟失以其他表單設置的數據。 – jolt 2011-06-13 14:22:00