I'm setting up a plain HTML/PHP(to perform include()
) website for demo purposes strictly. I'd like to make a functional login page that redirects the user based on the credentials used.
For example: If the user/pass combination used was "editor" and "123456" respectively, then he will be redirected to /editor.html
. The same for "admin" and "user" members...
Certainly I already have the basic login layout in HTML, but how can I make it functional that way? How could I achieve this effectively?
Thank you very much for your time, Regards
Html code
<div id="pane-login" class="panel-body active">
<div class="form-group">
<div class="inputer">
<div class="input-wrapper">
<input type="text" class="form-control" placeholder="User">
</div>
</div>
</div>
<!--.form-group-->
<div class="form-group">
<div class="inputer">
<div class="input-wrapper">
<input type="password" class="form-control" placeholder="Pass">
</div>
</div>
</div>
<!--.form-group-->
<div class="form-buttons clearfix">
<label class="pull-left">
<input type="checkbox" name="remember" value="1">
Remember</label>
<button type="submit" onclick="location.href='index.php';" class="btn btn-success pull-right">Enter</button>
</div>
<!--.form-buttons-->
</div>