Inside the login.php file, there is a function call. For the life of me, I can't get it to work.
if ($submit) {
user_login($user_name,$password);
}
echo '<H3>Login To PHPBuilder</H3>
<P>
Enter your user name and password and we\\'ll set a cookie so we know you\\'re logged in.
<P>
<FORM ACTION="'. $PHP_SELF .'" METHOD="POST">
<B>User Name:</B><BR>
<INPUT TYPE="TEXT" NAME="user_name" VALUE="" SIZE="10" MAXLENGTH="15">
<P>
<B>Password:</B><BR>
<INPUT TYPE="password" NAME="password" VALUE="" SIZE="10" MAXLENGTH="15">
<P>
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="Login To PHPBuilder">
</FORM>
<P>
<A HREF="register.php">[ Register A New Account ]</A>
<P>
<A HREF="changepass.php">[ Change Your Password ]</A>
<P>
<A HREF="changeemail.php">[ Change Your Email Address ]</A>';
When I hit the submit button, the function call is never true. It always returns false for $submit. Nobody else seems to have had this problem. If I change the function call to '!$submit', I get what I should.
Any ideas?
-J