在我的主頁上我有一個登錄表單。可以根據已登錄的用戶名更改爲其他內容嗎?根據登錄用戶名更改表格
例如
<form id="form1" name="form1" method="post" action="testconnect.php">
<p>
<label for="username">Username:</label>
<input type="text" name="username" id="username" />
</p>
<p>
<label for="password">Password:</label>
<input type="text" name="password" id="password" />
</p>
<p>
<input type="submit" name="login" id="login" value="Submit" />
</p>
</form>
這能在主頁上更改爲顯示
歡迎回來 「用戶名」。註銷在
$_COOKIE
你可以在以後嘗試嗎?在提出任何問題之前,請搜索它。 –
http://www.w3schools.com/php/php_intro.asp – Manatax