|
|
#1 |
|
New Member
![]() Join Date: Dec 2011
Posts: 15
|
I am unable to login with my script. When I click on "login", the page seems to refresh, but it does nothing besides that. The register.php works perfectly, but there seems to be something wrong with the login.php. I'm also getting some message that says, "Notice: Undefined variable: act in C:\wamp\www\youtube\login.php on line 74." But that's probably not the issue (I've had that with the register script before and it worked fine; I think that's just some warning, not an actual error).
The order of the columns in my table is id, full_name, email, username and password (if that changes anything). Could you please help me out with this? Here is the register.php: http://pastebin.com/tRK803AY Here is the login.php: http://pastebin.com/1LUtsH4q Thanks again Oh and I'm doing this on WAMP (once again, the register.php works perfectly on it) |
|
|
|
|
|
#2 |
|
Silver Member
![]() Join Date: Jul 2011
Posts: 146
|
Check line 51.
Also, you haven't set a value in your code for the variable $act. |
|
|
|
|
|
#3 |
|
New Member
![]() Join Date: Dec 2011
Posts: 15
|
hmm, but what could I set it to so that it works? I'm pretty sure that's the issue though
|
|
|
|
|
|
#4 |
|
New Member
![]() Join Date: Dec 2011
Posts: 2
|
Try the isset() function.
http://php.net/manual/en/function.isset.php |
|
|
|
|
|
#5 |
|
Silver Member
![]() Join Date: Jul 2011
Posts: 146
|
In addition to fixing line 51, you really need to add this line:
Code:
$act = $_REQUEST['act']; |
|
|
|
|
|
#6 |
|
New Member
![]() Join Date: Dec 2011
Posts: 15
|
Thanks a lot everyone. Here's what it looks like now: http://pastebin.com/tPUF80SE
It seems to at least be detecting false passwords, but still doesn't login the user. strange.. Oh and I wasn't sure how to use isset in this case |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|