Login and redirect after.
View Single Post
07-04-2008, 12:25 AM
Join Date: Sep 2007
Location: Sweden, Stockholm
Originally Posted by
Waste, posting 2 times same thing Tx, just with better style ;P
Actually, your script won't even work.
First of all, you check if the session logged is set to (int) 1. When he logged in, the session logged is set to (string) yes, so checking if it's set to 1, will always return FALSE.
Secondly, you check if $username is set, but he don't even have that variable, he uses $u and $p for username and password. So it's the same thing here, this will always return FALSE.
Lastly, I don't even get the point in checking your $username. You check to see if it's NOT set(=empty), and if it fullfills that requirement, you set the $username var to.. NOTHING, meaning.. you don't change the value at all.
View Public Profile
Send a private message to Tanax
Visit Tanax's homepage!
Find More Posts by Tanax