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.
Sign In
Not a member yet? Click here to register.
Forgot Password?
Navigation

Custom log in form

Last updated on 1 year ago
Z
zinnorovNewbie
Posted 1 year ago
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 15:36, 1 year ago
G
GrimlochSenior Member
Posted 1 year ago
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.
Energy can neither be created nor destroyed; only transformed !
Edited by Grimloch on 18-10-2023 01:25, 1 year ago
K
karrakSenior Member
Posted 1 year ago
more like something like that

action=".$settings['opening_page']."
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
You cannot set up a bounty in this discussion thread.
Moderator: Support Team
Users who participated in discussion: karrak, Grimloch, zinnorov