2015-02-12 53 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