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

密碼網頁設計

發布時間:2020-08-05 15:11:20

1、網頁中輸入密碼和用戶名的表單如何製作

提交界面代碼:
------------------------------------------------------
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文檔</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: large;
font-weight: bold;
font-family: "Courier New", Courier, monospace;
color: #FF0000;
}
-->
</style>
</head>
<body>
<form action="chuli.asp" method="post">
<table width="276" border="1" align="center">
<caption>
<span class="STYLE1">信息提交 </span>
</caption>
<tr>
<td width="61">姓名:</td>
<td width="199"><label>
<input type="text" name="username" id="username" />
</label></td>
</tr>
<tr>
<td>性別:</td>
<td><p>
<label>
<input type="radio" name="type" value="1" id="RadioGroup1_0" />
男</label>
<label>
<input type="radio" name="type" value="2" id="RadioGroup1_1" />
女</label>
</p></td>
</tr>
<tr>
<td>密碼:</td>
<td><label>
<input type="password" name="pass" id="pass" />
</label></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="button" id="button" value="提交" />
<label>
   
<input type="reset" name="button2" id="button2" value="重置" />
</label></div></td>
</tr>
</table>
</form>
</body>
</html>

處理界面代碼:
---------------------------------------------------------
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文檔</title>
<%
username=request.Form("username")
sex=request.Form("type")
password=request.Form("pass")
if sex=1 then
sexname="男"
else
sexname="女"
end if
%>
</head>

<body>
<table width="241" border="1" align="center">
<caption>
信息提取
</caption>
<tr>
<td width="131">姓名:</td>
<td width="94"><% response.write username %></td>
</tr>
<tr>
<td>性別:</td>
<td><% response.write sexname %></td>
</tr>
<tr>
<td>密碼:</td>
<td><% response.write password %></td>
</tr>
</table>

<p align="center"><a href="cbc.html">返回</a></p>
</body>
</html>
----------------------------------------------------
第一個文件是HTML的,第二個文件是ASP的

2、網頁設計-如何使網頁中用戶名密碼實用化-內詳拜託了各位 謝謝

到第二個頁面去判斷。 如果正確繼續停留在第二頁,否則跳轉回第一頁 舉個例子 第二個頁的: session_start(); //下面會用到緩存 $sql = "select * from `用戶表` where `username`='".$username."';"; $result = mysql_fetch_array(mysql_query($sql) or die(mysql_error())); $username = $_POST['username']; $password = $_POST['password']; if ($username = $result['username'] && $password = $result['password']) { echo "登錄成功"; $_SESSION['access'] = 1; //用來記錄登錄是否成功 } else { echo "<script>alert('帳號或密碼錯誤');history.back;</script>"; // 用JS提示並跳轉 die(); }

3、知道一個網頁的IP.知道帳號跟密碼!~怎麼進入後台網頁進行設計`

如果是ftp
輸入
ftp://ip
填寫
用戶名
密碼
把你自己設計好的上傳上去就可以了
如果不是ftp
一般是不會讓你隨便修改源代碼的哦

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

5、網頁設計——密碼問題

select * from 管理員表 where 用戶名='張三' and 密碼='123456'

用這種格式判斷查詢結果是否為空。

6、網頁怎麼製作需要密碼登陸

找一個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>"

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

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

登陸頁自己寫吧

7、html語言如何實現帳號密碼登陸

html可以使用表單進行的最簡單的賬號密碼登錄的頁面設計,但是不具備判斷賬號密碼正確性等邏輯的能力,這個需要後台語言處理反饋。

工具原料:編輯器、瀏覽器

1、使用form表單事件最簡單的賬號密碼登錄的數據提交,代碼如下:

<!DOCTYPE html>
<html>
<body>

<form action="login.php">
用戶名:<br>
<input type="text" name="firstname" value="請輸入賬號">
<br>
密碼:<br>
<input type="text" name="lastname" value="請輸入密碼">
<br><br>
<input type="submit" value="Submit">
</form> 
</body>
</html>

2、點擊提交數據將會提交給login.php進行處理,運行的結果如下:

8、我在設計一個網頁頁面,想要讓你輸入一個密碼,如果正確,進入下個網頁,如果不正確,彈出對話框(錯誤)

你密碼是讀取資料庫還是自己設定一個,基本思路是你獲取文本框裡面輸入的密碼和你設定或者資料庫中讀取的密碼出來和文本框輸入的對比,如果2個對上了,那麼進入下一頁,如果對不上那麼彈出提示框。基本代碼是:
if(原始密碼==文本框內容)
{
進入一下頁的代碼
}
else
{
提示密碼錯誤
}

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

我就是動態網頁方面的專家(精通asp、asp.net和php網站語言),我把我用php做好的後台登陸代碼亮出來給你看看

第一步:要先把登陸框的靜態頁面做好。

第二步:用php+sql來做動態的登陸(文件名:login.php)代碼如下:

<?php session_start();?>


<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>驗證碼技術登錄</title>

</head>

<style>

td{

font-size:9pt;

}

</style>

<script language="javascript">

function check(myform){

if(myform.txt_user.value==""){

alert("請輸入用戶名!");myform.txt_user.focus();return false;

}

if(myform.txt_pwd.value==""){

alert("請輸入密碼!");myform.txt_pwd.focus();return false;

}

if(myform.txt_yan.value==""){

alert("請輸入驗證碼!");myform.txt_yan.focus();return false;

}

if(myform.txt_yan.value!=myform.txt_hyan.value){

alert("對不起,您輸入的驗證碼不正確!");myform.txt_yan.focus();return false;

}

}

</script>

<body>

<table width="693" height="346" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>

<td background="images/image_02.png">

<form name="myform" method="post"  action="checkuser.php">

<table width="693" border="0" cellspacing="0" cellpadding="0">

<tr>

<td height="42" colspan="5">&nbsp;</td>

</tr>

<tr>

<td width="154" height="117" rowspan="4">&nbsp;</td>

<td height="13" colspan="3" align="center" valign="top">&nbsp;</td>

<td width="160" rowspan="4">&nbsp;</td>

</tr>

<tr>

<td width="99" height="30" align="right" valign="middle">用戶名:</td>

<td colspan="2" align="left" valign="middle"><input type="text" name="txt_user"></td>

</tr>

<tr>

<td height="30" align="right" valign="middle">密&nbsp;&nbsp;碼:</td>

<td height="30" colspan="2" align="left" valign="middle"><input type="password" name="txt_pwd" onCopy="return false" onCut="return false" onPaste="return false" maxlength="60"></td>

</tr>

<tr>

<td height="30" align="right" valign="middle">驗證碼:</td>

<td width="218" height="32" align="left" valign="middle"><input type="text" name="txt_yan">

<?php

$num=intval(mt_rand(1000,9999));

for($i=0;$i<4;$i++){

echo "<img src=images/checkcode/".substr(strval($num),$i,1).".gif>"; //輸出隨機的數字圖形

}

?> 

<input type="hidden" name="txt_hyan" id="txt_hyan" value="<?php echo $num;?>" >

</td>

<td width="62" align="left" valign="middle"><input type="submit" name="Submit" value="登錄" onClick="return check(myform);"></td>

</tr>

<tr>

<td height="62" colspan="5">&nbsp;</td>

</tr>

</table>

</form>

</td>

</tr>

</table>

</body>

</html>

效果如下:

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