html登录界面下载(有没有人帮忙用html做个**界面)
本文目录
有没有人帮忙用html做个**界面
《?php
@$user = $_GET;
?》
***隐藏网址***
***隐藏网址***
《head》
***隐藏网址***
《title》登录页《/title》
《style type="text/css"》
body,div{
padding:0;
margin:0;
}
#total{
margin:0 auto;
width:1000px;
height:1000px;
background:#FF9;
position:relative;
-webkit-box-shadow:0 0 15px #292929;
-moz-box-shadow:0 0 10px #292929;
box-shadow:3px 0 45px #292929;
}
#login{
width:400px;
height:300px;
margin:0 auto;
position:absolute;
top:200px;
left:300px;
background:url(images/login_bg.png);
border-radius:3px;
}
#form_total{
margin:50px;
width:300px;
height:200px;
}
/*设置白色字体*/
#username,input,#password,#forgot_pwd,#go{
color:white;
font-size:12px;
font-family:Georgia, "Times New Roman", Times, serif;
letter-spacing:3px;
}
/*设置浮动属性*/
#username,#hsq_user,#input_user,#password,#hsq_pwd,#input_pwd,#forgot_pwd,#go{
float:left;
}
#input_user,#password,#input_pwd,#forgot_pwd{
clear:left;
}
/**/
#input_user,#input_pwd,input{
width:270px;
height:33px;
}
/*设置input*/
input{
background:#303030;
border-radius:3px;
border:0px;
padding-left:13px;
padding-right:13px;
}
/*设置go*/
#go{
width:80px;
height:25px;
background:#303030;
border-radius:3px;
border:0px;
margin-left:52px;
}
/*设置forgot_pwd*/
#forgot_pwd{
font-size:8px;
}
/*设置user_png/pwd_png/go*/
#hsq_user,#hsq_pwd{
float:right;
}
/*设置上下margin*/
#input_user,#password,#hsq_pwd,#input_pwd,#forgot_pwd,#go{
margin-top:20px;
}
/*设置a链接属性*/
#forgot_pwd a:link,#go a:link{
text-decoration:none;
color:white;
}
#forgot_pwd a:visited,#go a:visited{
text-decoration:none;
color:chocolate;
}
#forgot_pwd a:hover,#go a:hover{
text-decoration:underline;
color:white;
}
#forgot_pwd a:active,#go a:active{
color:blue;
}
.go{
width:80px;
height:25px;
background:#303030;
border-radius:3px;
border:0px;
}
《/style》
《/head》
《body》
《div id="total"》
《div id="login"》
《div id="form_total"》
《form action="loginController.php" method="post" name="testForm"》
《div id="username"》USERNAME《/div》
《div id="hsq_user"》《img src="images/hsq_user.png" /》《/div》
《div id="input_user"》《input type="text" name="user" value="《?php echo $user; ?》" /》《/div》
《div id="password"》PASSWORD《/div》
《div id="hsq_pwd"》《img src="images/hsq_pwd.png" /》《/div》
《div id="input_pwd"》《input type="password" name="pwd" /》《/div》
《div id="forgot_pwd"》《a href="#"》FORGOT PASSWORD《/a》《/div》
《div id="go"》《input type="submit" value="GO" class="go"/》《/div》
《!--
后期可以加入【是否记住密码】功能
【验证码防恶意**】
--》
《/form》
《/div》
《/div》
《/div》
《/body》
《/html》
html 下载界面
《a href="/209flashbg.rar"》xiazai《/a》
这是相对路径,你要保证你这个页面的存放盘符下有这个文件
比如你的页面放在C盘的,你要保证c:/209flashbg.rar这个文件存在,即可
想用html做一个静态登录界面,可以验证密码的
参考下面代码
《form method="post" action="###" name="myform" ***ubmit="checkpost()"》
《label for="name"》用户名:《/label》《input type="text" name="name" id="name" /》《br /》
《label for="pw"》密码:《/label》《input type="password" name="pw" id="pw" /》《br /》
《input type="submit" value="提交" /》
《/form》
《script》
function checkpost(){
if(document.forms.pw.value=="要的密码"){
window.location="要跳转的地址";
}else{
alert("用户名或密码不正确!")
return false;
}
}
《/script》
用HTML、PHP做了一个登录页面,为什么一点击登录就让我下载那个PHP文件,进不到**的页面
应该是php没有运行环境,或页面没有放在php运行环境内
因为你的PHP环境没有配置好,不能正确解析PHP文件。
建议你直接用PHPSTUDY,或者PHPNOW,,一些环境套件来做测试。。。