1
My login screen form HTML code (login.html):
<form class="form-signin" method="post" action="login.php">
<span id="reauth-email" class="reauth-email"></span>
<input type="email" name="user" id="user" class="form-control" placeholder="Email address" required autofocus>
<input type="password" name="password" id="password" class="form-control" placeholder="Password" required>
<div id="remember" class="checkbox">
<label>
<input type="checkbox" value="remember-me"><div class="remb">Lembrar-me</div>
</label>
</div>
<button class="btn btn-lg btn-primary btn-block btn-signin" type="submit" value="submit">Sign in</button>
</form><!-- /form -->
When I click on the Ubmit button, having typed an email and a password of any kind, the browser offers me to open a php file, when I open it, it has the code present in the file login.php. No matter what’s in that file.
What do you mean? The code you entered is exactly what your code looks like? I mean, this is the complete code there?
– LocalHost
No, my html file has more stuff. You think I need to post the rest?
– Gabriel Pellegrino
Put it complete, because there may be something interfering. Because apparently your code is normal
– LocalHost
The php code is written on the screen as if it were a common text, that’s it?
– André
You are opening your file for some program (XAMPP or WAMP)?
– Gilmar Santos
Yes, André. And no, Gilmar.
– Gabriel Pellegrino