Thread subject: Official Home of the PHPFusion CMS :: Custom log in form

Posted by zinnorov on 13-10-2023 00:40
#1

Hey. I have a custom login form, but I guess the problem is in my tpl.
Here's the code:
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

Posted by Grimloch on 18-10-2023 02:23
#2

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

Posted by karrak on 18-10-2023 19:19
#3

more like something like that

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