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?

Custom log in form

Asked Modified Viewed 542 times
Z
zinnorov
Z
  • Newbie, joined since
  • Contributed 1 post on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Hey. I have a custom login form, but I guess the problem is in my tpl.
Here's the code:
 .btn-extra { margin-top: 10px; }<div style="display: flex; justify-content: center; margin-top: 100px;"> <div style="text-align: center; background-color: transparent; color: #fff; font-size: 12px; padding: 10px;"> <form action="login.php" method="post"> <div class="form-group"> <label for="username">login</label> <input type="text" id="username" name="username" class="form-control"> </div> <div class="form-group"> <label for="password">pass</label> <input type="password" id="password" name="password" class="form-control"> </div> <button type="submit" class="btn btn-primary btn-extra">join</button> </form> </div><img src="/images/autumn.jpg" alt="bg" width="300" height="100"></div>

It redirects me, to login.php.
Edited by zinnorov on 13-10-2023 16:36,
0 replies

2 posts

G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
answered
Senior Member

From what I see in your code that's the way it is because you have ....form action="login.php".... ! The form action is taking it right back to the login script. It probably should be index.php or home.php whichever is your main script.
Edited by Grimloch on 18-10-2023 02:25,
0 replies
K
karrak
K
karrak 32
Van mi sosem változik..smile
  • Senior Member, joined since
  • Contributed 310 posts on the community forums.
  • Started 94 threads in the forums
  • Answered 1 question
answered
Senior Member

more like something like that

action=".$settings['opening_page']."
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

K
K
karrak 32
Van mi sosem változik..smile
  • Senior Member, joined since
  • Contributed 310 posts on the community forums.
  • Started 94 threads in the forums
  • Answered 1 question
G
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
Z
Z
  • Newbie, joined since
  • Contributed 1 post on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet