導航:首頁 > 萬維百科 > 網頁設計怎麼設置賬號和密碼

網頁設計怎麼設置賬號和密碼

發布時間:2020-10-18 02:26:38

1、如何製作需要用戶名和密碼才能登陸的網頁(注冊表單)

是要用asp。不僅是這樣啊。你還要有一個後台的資料庫,裡面存放著你的客戶的資料。所有注冊的資料都存放在資料庫里。當他登陸的時候如果資料庫里有他的資料就會登陸,如果沒有就要新注冊。把你的網頁連接資料庫。資料庫的作用不僅僅是實現用戶登錄。你可以有管理員管理等很多

2、如何製作HTML網頁登錄 就是固定賬號密碼的那種 應該用代碼就可以了吧?

用PHP。

登錄頁面:
<html>
<head><title>Login</title></head>
<body>
<form action="login_page.php" method="GET">
<label for="name">Name: </label><input type="text" name="name" />
<label for="passwd">Password: </label><input type="password" name="passwd" />
<button type="submit>Login</button>
</form>
</body>
</html>
登錄後頁面:
<?php
if(isset($_GET['name'], $_GET['passwd'])) {
if($_GET['name'] == '你設的用戶名' && $_GET['passwd'] == '你設的密碼') {
print "登錄成功!在此加入自定義輸出";
}
}
?>
用ASP也類似。

3、如何為網頁製作一個有用戶登陸和注冊的功能網頁???

這應該不是僅僅高手知道的吧?
原理是這樣的:
如果是明文保存密碼的話就簡單了,入門也都教這樣的,我也說這樣的例子。
注冊就是設置(最基本)兩個input,一個用戶名,一個密碼。然後一個submit按鈕。提交到本頁,加一個參數。
比如
thispage.asp?action=reg
這里的參數是action,值是reg。
在頁的另一部分進行獲取
p = request.querystring("aciton");
if(p=="reg")
{
//這里進行注冊
以剛才傳過來的表單里的username為關鍵字進行SQL查找,看庫里有無這個用戶。如果沒有,則寫入資料庫:剛才的用戶名和密碼。
如果有這個用戶,返回信息,告知用戶該名已被使用。
}
登陸也類似
只不過是先以用戶名作為關鍵字進行查找,然後找不到該用戶名報錯,如果找到,則將其密碼從資料庫中提出,和用戶從表單提交的值進行比較,如果不一致,報錯。如果一致,則通過,登陸成功。
如果是以密文進行保存的密碼,則需要更多處理,你現在根本弄不明白,還是先弄清楚明文密碼吧。

4、網頁設計中,如何保存用戶的注冊的用戶名和密碼

一般是存入資料庫,密碼是MD5加密過的欄位,防止被人盜取的.

5、請問網頁製作用戶登錄界面用戶名和密碼怎麼做?謝謝。

前端開發,從模仿開始
各種登錄,驗證碼demo,先熟悉一批,在學會文本框輸入綁定以及關聯數據欄位加密,一步一步來

6、網頁製作如何添加用戶登錄(用戶名登錄密碼那種)

樣式
html {
background-color: #E9EEF0
}
.wrapper {
margin: 140px auto;
width: 884px;
}
.loginBox {
background-color: #FEFEFE;
border: 1px solid #BfD6E1;
border-radius: 5px;
color: #444;
font: 14px 'Microsoft YaHei','微軟雅黑';
margin: 0 auto;
width: 388px
}
.loginBox .loginBoxCenter {
border-bottom: 1px solid #DDE0E8;
padding: 24px;
}
.loginBox .loginBoxCenter p {
margin-bottom: 10px
}
.loginBox .loginBoxButtons {
background-color: #F0F4F6;
border-top: 1px solid #FFF;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
line-height: 28px;
overflow: hidden;
padding: 20px 24px;
vertical-align: center;
}
.loginBox .loginInput {
border: 1px solid #D2D9dC;
border-radius: 2px;
color: #444;
font: 12px 'Microsoft YaHei','微軟雅黑';
padding: 8px 14px;
margin-bottom: 8px;
width: 310px;
}
.loginBox .loginInput:FOCUS {
border: 1px solid #B7D4EA;
box-shadow: 0 0 8px #B7D4EA;
}
.loginBox .loginBtn {
background-image: -moz-linear-gradient(to bottom, #B5DEF2, #85CFEE);
border: 1px solid #98CCE7;
border-radius: 20px;
box-shadow:inset rgba(255,255,255,0.6) 0 1px 1px, rgba(0,0,0,0.1) 0 1px 1px;
color: #FFF;
cursor: pointer;
float: right;
font: bold 13px Arial;
padding: 5px 14px;
}
.loginBox .loginBtn:HOVER {
background-image: -moz-linear-gradient(to top, #B5DEF2, #85CFEE);
}
.loginBox a.forgetLink {
color: #ABABAB;
cursor: pointer;
float: right;
font: 11px/20px Arial;
text-decoration: none;
vertical-align: middle;
}
.loginBox a.forgetLink:HOVER {
text-decoration: underline;
}
.loginBox input#remember {
vertical-align: middle;
}
.loginBox label[for="remember"] {
font: 11px Arial;
}
HTML代碼:

<div class="wrapper">
<form action="/chaos/EvilEmail.html" method="post" >
<div class="loginBox">
<div class="loginBoxCenter">
<p><label for="username">電子郵箱:</label></p>
<p><input type="email" id="email" name="email" class="loginInput" autofocus="autofocus" required="required" autocomplete="off" placeholder="請輸入電子郵箱" value="" /></p>
<p><label for="password">密碼:</label><a class="forgetLink" href="#">忘記密碼?</a></p>
<p><input type="password" id="password" name="password" class="loginInput" required="required" placeholder="請輸入密碼" value="" /></p>
</div>
<div class="loginBoxButtons">
<input id="remember" type="checkbox" name="remember" />
<label for="remember">記住登錄狀態</label>
<button class="loginBtn">登錄</button>
</div>
</div>
</form>
</div>

7、如何製作輸入用戶名及密碼才可以登陸的網頁

既然需來要判斷用戶名自和密碼來進行登錄操作,那麼必須用到資料庫。
1)如果其他頁面都是靜態的,那麼在資料庫中建立一張用戶表就可以了,可以給資料庫附一些初始值以便測試登錄。
2)看選擇的語言,來編寫登錄代碼。
3)製作網頁雖然不算難,但是還是要有一定的計算機基礎知識。

8、html網頁設計:一個簡單的登錄界面代碼!

是這樣的效果嗎?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>3</title>
<script>
function r()
{

var username=document.getElementById("username");

var pass=document.getElementById("password");
if(username.value=="")
{
alert("請輸入用戶名");
username.focus();
return;
}
if(pass.value=="")
{
alert("請輸入密碼");
return;
}
return true;
}
</script>
</head>
<body>
<form>
<table width="350" bgcolor="#ccffcc" style="border-color" border="1">
<tr align=center>
<td>用戶名</td><td><input type="text" name="username" id="username"></td>
</tr>
<tr align=center><td>密 碼</td><td><input type="password" name="password" id="password"></td></tr>
<tr align=center><td>驗證碼</td><td><input type="text" name="yanzheng"></td></tr>
<tr align=center><td colspan="2"><input type="button" value="登 錄" onclick="r();"/>     <input type="reset" value="重 置"/></td></tr>

</table>
</form>
</body>
</html>

9、網頁製作中如何設置會員或者用戶登錄功能

第一個:用DW+asp做的登陸系統:
1.這個是總目錄:
http://tech.163.com/special/000915SN/dwbase.html
2.這個是登陸系統視頻教程:
http://tech.163.com/06/1211/17/3233FOIS000920IR.html
第二種,直接用asp寫的
http://www.blueidea.com/tech/program/2005/2589_6.asp
希望對你有用!

與網頁設計怎麼設置賬號和密碼相關的知識