2013-03-26 17 views
0

我做了一個註冊頁面,出於某種原因,當用戶點擊按鈕進行註冊時,它將它們帶到與我告訴代碼帶給他們不同的頁面。PHP - 按鈕帶我到一個完全不同的頁面

<form action="../scripts/registerparse.php" method="post"> 
    Username <input type="text" name="username" id="username" /> 
    Password <input type="password" name="password" id="password" /> 
    Confirm Password <input type="password" name="confirmpassword" id="confirmpassword" /> 
    Full Name <input type="text" name="fullname" id="fullname" /> 
    Email <input type="text" name="email" id="email" /> 
    Gamertag <input type="text" name="gamertag" id="gamertag" /> 
    Console <select name="console"> 
       <option value="XBox360">XBOX 360</option> 
       <option value="Playstation3">PS3</option> 
      </select> 
    <input type="submit" value="Create Your Account Now" name="submit2" id="submit2" /> 
</form> 

代碼告知去「registerparse.php」的人,但它帶來的人「loginparse.php」。有沒有人有一個想法,爲什麼它這樣做?

+0

也許registerparse.php theres重定向loginparse.php – 2013-03-26 03:03:39

+0

@KAii這是registerparse.php的代碼:http://pastebin.com/VtQkhUKe 對不起,鏈接,但它不適合字符限制。 – user2133895 2013-03-26 03:05:38

+0

您可以使用Firebug/Chrome devtools來跟蹤請求。 – Passerby 2013-03-26 03:08:08

回答

0

檢查registerparse.php

如果那裏有訂走loginparse.php

來看看是否有來自registerparse.php

打開重定向你的網頁從Firefox,然後在Firebug開放Firebug

頁的條件啓用NET控制檯然後單擊您的提交按鈕,其中表單爲

你會看到,如果你的形式也纔去loginparse.php

或直接前往loginparse.php

兩件事從firebug debbuging的輸出來檢查去registerparse.php

1。如果您的形式去registerparse.php纔去loginparse.php你應該檢查你loginparse.php 如果有正在作出任何重定向..

2。如果您的表單直接發送至loginparse.php,請檢查表單所在的表單是否爲表單直接提交時可能存在問題的某些javascript 。

+0

以下是registerparse.php的代碼:pastebin.com/VtQkhUKe對不起,請稍等片刻。 – user2133895 2013-03-26 03:07:00

+0

它似乎沒有在你的registerparse.php上做任何重定向。嘗試調試它,看看它是否直接通過螢火蟲 – 2013-03-26 03:14:05

+0

通過loginparse.php如果這可能是一些JavaScript提交.. – 2013-03-26 03:15:26

相關問題