我有以下形式。如何從文本字段獲取值並將其傳遞給變量?
<form name="cookieform" id="login" method="POST">
<input type="text" NAME="username" id="username" class="text" maxlength="30" />
</form>
我想要做的是從文本字段中獲取值並將其放置到PHP變量中。我有以下代碼。
<?php
$get_username = $_POST['username'];
print($get_username);
?>
感謝
你做得對。 – 2011-04-08 19:26:25
一些建議 - _try_它。 _打破它甚至。有一個撤消功能的原因。 :-) – stealthyninja 2011-04-08 19:30:16