❶ 网站注册页面代码
这样的问题,在这里很难找到你想要的答案,我给你看那本书吧!
❷ 登陆页面的代码怎么写我有一张图片
将图片数据缩小 数码相机的图片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