我正在严格设置一个纯HTML/PHP(执行include()
)网站用于演示目的。我想根据所使用的凭证制作一个功能登录页面,用于重定向用户。基于使用凭据的基本用户重定向
例如:如果使用的用户/传球组合分别是“editor”和“123456”,那么他将被重定向到/editor.html
。同样的“管理员”和“用户”的成员...
当然,我已经在HTML中的基本登录布局,但我怎么能使它的功能呢?我怎样才能有效实现这一目标?
非常感谢您的宝贵时间, 问候
HTML代码
<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>
请在这里发布你的html代码请点击这里 –
Hi there。只是做了;) –