❶ 網站注冊頁面代碼
這樣的問題,在這里很難找到你想要的答案,我給你看那本書吧!
❷ 登陸頁面的代碼怎麼寫我有一張圖片
將圖片數據縮小 數碼相機的圖片1M多一張 要讓數據變小 才好發送郵件 謝謝 897:求助,有誰製作過WINDOWS下的ACM插件,我正在做一個G729插件,不知怎麼
❸ asp網站注冊登陸代碼
簡單點的 就是兩個文本框 再的話 加個驗證碼
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../Connections/conn.asp" -->
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString <> "" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
MM_valUsername = CStr(Request.Form("textfield"))
If MM_valUsername <> "" Then
Dim MM_fldUserAuthorization
Dim MM_redirectLoginSuccess
Dim MM_redirectLoginFailed
Dim MM_loginSQL
Dim MM_rsUser
Dim MM_rsUser_cmd
MM_fldUserAuthorization = ""
MM_redirectLoginSuccess = "../HTAI/index.asp"
MM_redirectLoginFailed = "dlsb.asp"
MM_loginSQL = "SELECT name, pass"
If MM_fldUserAuthorization <> "" Then MM_loginSQL = MM_loginSQL & "," & MM_fldUserAuthorization
MM_loginSQL = MM_loginSQL & " FROM zc WHERE name = ? AND pass = ?"
Set MM_rsUser_cmd = Server.CreateObject ("ADODB.Command")
MM_rsUser_cmd.ActiveConnection = MM_conn_STRING
MM_rsUser_cmd.CommandText = MM_loginSQL
MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param1", 200, 1, 50, MM_valUsername) ' adVarChar
MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param2", 200, 1, 50, Request.Form("textfield2")) ' adVarChar
MM_rsUser_cmd.Prepared = true
Set MM_rsUser = MM_rsUser_cmd.Execute
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
' username and password match - this is a valid user
Session("MM_Username") = MM_valUsername
If (MM_fldUserAuthorization <> "") Then
Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
Else
Session("MM_UserAuthorization") = ""
End If
if CStr(Request.QueryString("accessdenied")) <> "" And false Then
MM_redirectLoginSuccess = Request.QueryString("accessdenied")
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginSuccess)
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginFailed)
End If
%>
<!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">
<!--
.s {
height: 18px;
width: 180px;
}
-->
</style>
</head>
<body bgcolor="#000000" text="#FFFFFF"><table><tr><th height="10"></th></tr></table>
<form id="form1" name="form1" method="POST" action="<%=MM_LoginAction%>">
<table width="452" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th height="25" colspan="2" scope="col">用戶登錄</th>
</tr>
<tr>
<td width="172" height="25" align="right">用戶名:</td>
<td width="280" height="25"><label>
<input name="textfield" type="text" class="s" id="textfield" />
</label></td>
</tr>
<tr>
<td height="25" align="right">密碼:</td>
<td height="25"><label>
<input name="textfield2" type="password" class="s" id="textfield2" />
</label></td>
</tr>
<tr>
<td height="25"></td>
<td height="25"><label>
<input type="submit" name="button" id="button" value="登錄" />
<input type="reset" name="button2" id="button2" value="重置" />
</label></td>
</tr>
</table>
</form>
</body>
</html>
❹ 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>
</head>
<body>
<div align="center">
<form action="" name="myform">
<table>
<tr>
<td>用戶名:</td>
<td><input type="text" id="user" /></td>
</tr>
<tr>
<td>密 碼:</td>
<td><input type="text" id="password" /></td>
</tr>
<tr>
<td>驗證碼:</td>
<td align="left"><input type="text" size="5" id="code" /></td>
</tr>
</table>
</form>
<table>
<tr>
<td>
<input type="submit" value="提交" onclick=myfun_submit() />
</td>
<td>
<input type="submit" value="重置" onclick=myfun_reset() />
</td>
</tr>
</table>
</div>
<script type="text/javascript">
function myfun_submit(){
var user_val = document.getElementById("user").value;
var password_val = document.getElementById("password").value;
if(user_val==""){
alert("用戶名不能為空!!");
}else if(password_val==""){
alert("密碼不能為空!!!");
}
}
function myfun_reset(){
document.getElementById("user").value = "";
document.getElementById("password").value = "";
document.getElementById("code").value = "";
}
</script>
</body>
</html>
❺ 如何修改網站登錄頁面源碼
具體點 要修改留下聯系方式 吧,我幫你修改。
❻ 網頁模板源代碼下載
源碼網站就是指網站是全新開發的,全新設計,全新代碼進行開發,而模板網站就相對簡單,就是在模板的網站代碼的基礎上進行簡單的修改和部署。你可以通過網站模板源碼進行相關的下載,可以讓整個網頁開發比較簡單,消耗的人力成本少,因此開發費用比較低。
❼ php網站登錄注冊源碼
//login.php 負責處理用戶登錄與退出動作
if(!isset($_POST['submit'])){
exit('非法訪問!');
}
$username = htmlspecialchars($_POST['username']);
$password = MD5($_POST['password']);
//包含資料庫連接文件
include('conn.php');
//檢測用戶名及密碼是否正確
$check_query = mysql_query("select uid from user where username='$username' and password='$password' limit 1");
if($result = mysql_fetch_array($check_query)){
//登錄成功
$_SESSION['username'] = $username;
$_SESSION['userid'] = $result['uid'];
echo $username,' 歡迎你!進入 <a href="my.php">用戶中心</a>
';
echo '點擊此處 <a href="login.php?action=logout">注銷</a> 登錄!
';
exit;
} else {
exit('登錄失敗!點擊此處 <a href="javascript:history.back(-1);">返回</a> 重試');
}
註:上述源碼是在TP中的登錄驗證方法,供參考!!
❽ 這個首頁的html5網站設計代碼(尤其是頭部那登錄注冊代碼怎麼寫)
首先先說一下HTML5的代碼只是在原有的XHTML基礎上增加了一些新的標簽(還有一些新的特性,例如資料庫和緩存等特性)
以下為此頁面的結構代碼:
<!doctypehtml>
<html>
<head>
<metacharset="utf-8">
<metaname="revised"content=""/>
<metaname="keywords"content=""/>
<metaname="description"content=""/>
<metaname="author"content=""/>
<metaname="robots"content="all"/>
<title>頁面標題</title>
</head>
<body>
<header>
<div></div><!--登陸注冊區域-->
</header><!--頭部[html5新標簽]-->
<nav></nav><!--導航[html5新標簽]-->
<div></div><!--banner-->
<div></div><!--左上-->
<div></div><!--右上-->
<div></div><!--左下-->
<div></div><!--右下-->
<footer></footer><!--底部[html5新標簽]-->
</body>
</html>
註:以上為頁面的大的框架,相對用HTML5新的標簽更合理的,全用上了新的帶有語義標簽。
另外多說一下,[注冊登陸]這塊在html5的新標簽裡面沒有很合適的語義化的標簽,所以依然採用原有的div標簽為最合理。html5隻是在原有的技術的基礎上更細化了,咱在製作代碼的過程中沒必要必須用HTML5的代碼,主要看是否合理,合理的為較合適的。
多說的:不管用XHTML還是HTML5寫代碼,結構(HTML5)與樣式(CSS)盡量要分離!
希望能幫到你!
❾ 求在網頁製作中,做好一個網站後,在該網站中用會員登錄和注冊會員的代碼
到我資料裡面去看看在說把!到上面去發布任務,應該能夠幫助到你~~~~~
❿ 10分求一個比較漂亮的<注冊頁面>的模板<HTML或JSP>
10個漂亮的表單,您可以點上面的鏈接獲取源碼,並且提供了一步步的教程教您如何設計。
http://www.oschina.net/news/17323/top-10-css-3-forms-tutorials