2010-06-25 75 views

回答

0

痘痘樣品使用HTML表格subimting數據....

reg.php

<form action="profile.php" method="post"> 
<input type="text" name="test" value="Test" /> 
<input type="submit" value="test" /> 
</form> 

profile.php

<?php 
echo $_POST["test"]; 
?> 
0

使用下列之一:

  • 使用隱藏表單域,並提交形式profile.php。
  • 將該字段附加到URL,如下所示:profile.php?gender=male
  • 將該字段放入用戶的session
  • 將該字段放在數據庫中,並從profile.php中的數據庫中檢索它。
+0

你可以給我發送php的測試文件嗎? – user375162 2010-06-25 11:14:05

相關問題