Codoforum related discussions
Post data empty

I have a login form i'm trying to get working yet when I hit submit the username and password I type in just disappears! I really have no idea what I broke this time.

Login Form

        <form class="form-signin" action="login.php" method="post">
          <div class="form-label-group">
            <input type="text" name="user" id="user" class="form-control" placeholder="User ID" required>
            <label for="user">Username</label>
          </div>
          <div class="form-label-group">
            <input type="password" name="pass" id="pass" class="form-control" placeholder="Password" required>
            <label for="pass">Password</label>
          </div>
          <p>logins are automatically remembered for 60 days. use the <a href="signout.php">signout</a> page to sign out. </p>
          <button class="btn btn-lg btn-primary btn-block text-uppercase" type="submit">Sign in</button>
        </form>
I have a login form i&#039;m trying to get working yet when I hit submit the username and password I type in just disappears! I really have no idea what I broke this time. Login Form &lt;form class=&quot;form-signin&quot; action=&quot;login.php&quot; method=&quot;post&quot;&gt; &lt;div class=&quot;form-label-group&quot;&gt; &lt;input type=&quot;text&quot; name=&quot;user&quot; id=&quot;user&quot; class=&quot;form-control&quot; placeholder=&quot;User ID&quot; required&gt; &lt;label for=&quot;user&quot;&gt;Username&lt;/label&gt; &lt;/div&gt; &lt;div class=&quot;form-label-group&quot;&gt; &lt;input type=&quot;password&quot; name=&quot;pass&quot; id=&quot;pass&quot; class=&quot;form-control&quot; placeholder=&quot;Password&quot; required&gt; &lt;label for=&quot;pass&quot;&gt;Password&lt;/label&gt; &lt;/div&gt; &lt;p&gt;logins are automatically remembered for 60 days. use the &lt;a href=&quot;signout.php&quot;&gt;signout&lt;/a&gt; page to sign out. &lt;/p&gt; &lt;button class=&quot;btn btn-lg btn-primary btn-block text-uppercase&quot; type=&quot;submit&quot;&gt;Sign in&lt;/button&gt; &lt;/form&gt;

You can try something like that:

<form class="box-body" action="?page=login" role="form" method="post" enctype="multipart/form-data" _lpchecked="1">

<br>

<input type="text" name="username" value="" class="form-control" placeholder="username" required="" autocomplete="off">

<br>

<input type="password" name="password" value="" class="form-control" placeholder="password" required="" autocomplete="off">

<br>

<input type="submit" value="Login" class="btn btn-success btn-block">

</form>

I hope this will help You smile
Good luck!

Andy

You can try something like that: ```` &lt;form class=&quot;box-body&quot; action=&quot;?page=login&quot; role=&quot;form&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot; _lpchecked=&quot;1&quot;&gt; &lt;br&gt; &lt;input type=&quot;text&quot; name=&quot;username&quot; value=&quot;&quot; class=&quot;form-control&quot; placeholder=&quot;username&quot; required=&quot;&quot; autocomplete=&quot;off&quot;&gt; &lt;br&gt; &lt;input type=&quot;password&quot; name=&quot;password&quot; value=&quot;&quot; class=&quot;form-control&quot; placeholder=&quot;password&quot; required=&quot;&quot; autocomplete=&quot;off&quot;&gt; &lt;br&gt; &lt;input type=&quot;submit&quot; value=&quot;Login&quot; class=&quot;btn btn-success btn-block&quot;&gt; &lt;/form&gt; ```` I hope this will help You :) Good luck! Andy

🚽 planing my next project 🪔

Check my GitHub Repos: https://github.com/WebCrew

My CrazyMates Account: https://crazymates.de/Crazymate

edited Jun 2 at 8:14 am
19
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft