Hello!!
Having a little problem with my login.
Notice: Undefined index: phpUserLogin_user_name in D:\webb\crookz\news\admin\phpUserLogin_main.php on line 15
Notice: Undefined index: phpUserLogin_pw in D:\webb\crookz\news\admin\phpUserLogin_main.php on line 17
Here´s the code:
$phpUserLogin_user_name = $HTTP_POST_VARS["phpUserLogin_user_name"];
$phpUserLogin_pw = $HTTP_POST_VARS["phpUserLogin_pw"];
Any help would be great!!
[/b]
Login Problems!
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Try,
Mac
Code: Select all
// some code
echo '<pre>';
print_r($HTTP_POST_VARS);
echo '</pre>';
$phpUserLogin_user_name = $HTTP_POST_VARSї"phpUserLogin_user_name"];
// rest of code- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
If nothing printed then the form probably hasn't been submitted yet. Is this code on the same page as the HTML for the form?
BTW, print_r() is used to check the contents of an variable. In this case to see if there was anything in the $HTTP_POST_VARS array. It's just a debugging tool and so wouldn't have stopped the errors even if there was anything in $HTTP_POST_VARS.
Mac
BTW, print_r() is used to check the contents of an variable. In this case to see if there was anything in the $HTTP_POST_VARS array. It's just a debugging tool and so wouldn't have stopped the errors even if there was anything in $HTTP_POST_VARS.
Mac