2008年9月9日 星期二

[PHP]文字類相關欄位

============HTML=========
< form id="form1" name="form1" method="post" action="test4.php">
< p>請輸入資料< /p>
< p>帳號
< label>
< input name="uname" type="text" size="10" />
< /label>
< /p>
< p>密碼
< label>
< input name="upass" type="password" size="15" />
< /label>
< /p>
< p>
< label>
備註
< textarea name="note" rows="8" id="note">< /textarea>
< /label>
< /p>
< p>

< input type="hidden" name="param" value="隱藏欄位" />
< /p>
< p>
< label>
< input type="submit" name="Submit" value="送出" />
< /label>
< label>
< input type="reset" name="Submit2" value="重設" />
< /label>
< /p>


< /form>
===================PHP================

< ?php
echo "< h2>< font color='purple'>".$_POST["param"]."< /font>< /h2>";

echo "會員名稱:".$_POST["uname"]."< p>";
echo "會員密碼:".$_POST["upass"]."< p>";
echo "備註:".$_POST["note"]."< p>";


?>

沒有留言: