User Control Panel help
#1

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?

PHP код:
.login 
    
positionabsolute;
    
top75%;
    
left50%;
    
margin: -150px 0 0 -150px;
    
width:300px;
    
height:300px;
}
input 
    
width100%; 
    
margin-bottom10px
    
backgroundrgba(0,0,0,0.3);
    
bordernone;
    
outlinenone;
    
padding10px;
    
font-size13px;
    
color#fff;
    
text-shadow1px 1px 1px rgba(0,0,0,0.3);
    
border1px solid rgba(0,0,0,0.3);
    
border-radius4px;
    
box-shadowinset 0 -5px 45px rgba(100,100,100,0.2), 0 1px 1px rgba(255,255,255,0.2);
    -
webkit-transitionbox-shadow .5s ease;
    -
moz-transitionbox-shadow .5s ease;
    -
o-transitionbox-shadow .5s ease;
    -
ms-transitionbox-shadow .5s ease;
    
transitionbox-shadow .5s ease;
}
input:focus box-shadowinset 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&#259;-te !</button>
    
</form>
</
div

Thanks
Reply
#2

You need to make an php website , to connect to database and select is/user/pass from db and check if exist and validated input and login , when login redirect to that page ... you can try using smart-framework php or laravel... but smart-framework php is the best on performance and easy to use, and learn how php work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)