Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Display username of failed user login

Asked Modified Viewed 1,363 times
M
Mech
M
Mech 10
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

I have attempted to put an "echo $_POST['user_name'] after nearly every line. The result was that the username of the failed login is not being sent. Why? How can I fix this?

The file is the login.php.
0 replies

1 post

D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Because the page is reloaded afterthe login failure. Try to sendthe username thtough an extra parameter Eg failedname=$_POST[user_name]
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

D
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
M
M
Mech 10
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet