25.07.2016, 11:35
Hi. I created a login box on my page
http://vestigedayz.com/ucp/testplm.html
I want to connect it to my database, and when a player presses Loghează-te ! it should redirect him to another page (/index/ucp/characterpage)
How can I make it?
Thanks
http://vestigedayz.com/ucp/testplm.html
I want to connect it to my database, and when a player presses Loghează-te ! it should redirect him to another page (/index/ucp/characterpage)
How can I make it?
PHP Code:
.login {
position: absolute;
top: 75%;
left: 50%;
margin: -150px 0 0 -150px;
width:300px;
height:300px;
}
input {
width: 100%;
margin-bottom: 10px;
background: rgba(0,0,0,0.3);
border: none;
outline: none;
padding: 10px;
font-size: 13px;
color: #fff;
text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
border: 1px solid rgba(0,0,0,0.3);
border-radius: 4px;
box-shadow: inset 0 -5px 45px rgba(100,100,100,0.2), 0 1px 1px rgba(255,255,255,0.2);
-webkit-transition: box-shadow .5s ease;
-moz-transition: box-shadow .5s ease;
-o-transition: box-shadow .5s ease;
-ms-transition: box-shadow .5s ease;
transition: box-shadow .5s ease;
}
input:focus { box-shadow: inset 0 -5px 45px rgba(100,100,100,0.4), 0 1px 1px rgba(255,255,255,0.2); }
<div class="login">
<form method="post">
<input type="text" name="u" placeholder="Username" required="required" />
<input type="password" name="p" placeholder="Password" required="required" />
<button type="submit" class="btn btn-primary btn-block btn-large">Loghează-te !</button>
</form>
</div>
Thanks