2015-02-12 54 views
0

好吧,所以即时在朋友的网站上工作,她想要一个登录,当他们登录时,如果信息是正确的,它会重定向到该页面,只有成员可以看到该页面。到目前为止,这是我所拥有的。登录按钮重定向到不同的页面

<div style="text-align: center;"> 
    <div style="box-sizing: border-box; display: inline-block; width: auto; max-width: 480px; background-color: #FFFFFF; border: 2px solid #0361A8; border- radius: 5px; box-shadow: 0px 0px 8px #0361A8; margin: 50px auto auto;"> 
    <div style="background: #0361A8; border-radius: 5px 5px 0px 0px; padding: 15px;"><span style="font-family: verdana,arial; color: #D4D4D4; font-size: 1.00em; font-weight:bold;">Login to Members Section</span></div> 
    <div style="background: ; padding: 15px"> 
    <style type="text/css" scoped=""> 
    td { text-align:left; font-family: verdana,arial; color: #064073; font-size: 1.00em; } 
    input { border: 1px solid #CCCCCC; border-radius: 5px; color: #666666; display: inline-block; font-size: 1.00em; padding: 5px; width: 100%; } 
    input[type="button"], input[type="reset"], input[type="submit"] { height: auto; width: auto; cursor: pointer; box-shadow: 0px 0px 5px #0361A8; float: right; text-align:right; margin-top: 10px; margin-left:7px;} 
    table.center { margin-left:auto; margin-right:auto; } 
    .error { font-family: verdana,arial; color: #D41313; font-size: 1.00em; } 
    </style> 
    <form method="post" action="http://www.authpro.com/auth/deluxe/" name="aform" target="_top"> 
    <input type="hidden" name="action" value="login"> 
    <input type="hidden" name="hide" value=""> 
    <table class='center'> 
    <tr><td>Login:</td><td><input type="text" name="login"></td></tr> 
    <tr><td>Password:</td><td><input type="password" name="password"></td> </tr> 
    <tr><td>&nbsp;</td><td><input type="submit" value="Login"></td></tr> 
    <tr><td colspan="2">&nbsp;</td></tr> 
    <tr><td colspan="2">Lost your username or password? Find it <a href="http://www.authpro.com/auth/userproject/?action=lost">here</a>!</td></tr> 
    <tr><td colspan="2">Not member yet? Click <a href="http://www.authpro.com/auth/userproject/?action=reg">here</a> to register. </td></tr> 
    </table> 
    </form> 
    </div></div></div> 
+0

和你最近的问题是什么?我没有看到任何错误 – 2015-02-12 03:42:43

回答

0

每件事情都像它应该的工作。当你按登录时运行的脚本,但是会重定向你的脚本

+0

我试图让它到达他们登录的地方,他们被重定向到某个页面,只能在登录后才能看到和使用。 – 2015-02-14 20:37:04

+0

你可以在PHP和MySQL中完成所有这些。这应该让你开始http://www.phpeasystep.com/phptu/6.html – User 2015-02-15 00:51:28