導航:首頁 > 萬維百科 > 網頁設計登錄密碼設置

網頁設計登錄密碼設置

發布時間:2020-11-11 02:02:05

1、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>

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

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

3、如何製作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也類似。

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

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

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

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

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、網頁怎麼製作需要密碼登陸

找一個MD5的頁,然後再用個ASP頁面Write""來建個config的內容存儲頁就行了,下次登陸時,驗證config中存儲的內容就行了
==============================
帳號設置頁:

用戶名:______________<name=user>
密碼:____________<name=pass>
提交 action="aa.asp"
==============================

=====aa.asp==========================

username = trim(Request.form("user"))
userpass = md5(trim(Request.form("pass")))
voteincdir = server.mappath("../config.asp")
Const ForReading =1, ForWriting = 2
set fs = CreateObject("Scripting.FileSystemObject")
set tt = fs.OpenTextFile(voteincdir,ForWriting, True)
tt.Write ""
tt.Write "<"
tt.Write "%"& vbCrLf
tt.Write " userneme= "&""""&userneme&""""& vbCrLf
tt.Write " userpass= "&""""&userpass&""""& vbCrLf
tt.Write "%"
tt.Write ">"
tt.close
response.write "<script language=javascript>"
response.write "alert('帳號設置成功!');"
response.write "</script>"

============================

==================

登陸頁自己寫吧

8、網頁設計Dreamweaver 3. 設置「密 碼」輸入框,

這些需要將密碼輸入框中的字元串進行一定的判斷的,需要編寫一定的邏輯判斷代碼,而Dreamweaver只是網頁可視化設計工具

與網頁設計登錄密碼設置相關的知識