-1
Good staff as I can print the contents of something php in a div for example : I have a login area , if the user data is wrong I want to print a div with Alert (with bootstrap) on the same page. I have this validation in php but I want you to show me in a div
follows codes
login
<form class="login-form" method="POST" action="pg/logar.php">
<input required type="text" name="f_usuario" placeholder="Usuario"/>
<input required type="password" name="f_senha" placeholder="Senha"/>
<button type="submit">Logar</button>
log in.php
if($linhas > 0){
$_SESSION['usuario'] = $usuario;
$_SESSION['senha'] = $senha;
header("Location:../logado.php");
}else{
echo "Dados Digitados Incorretos";
}
If your question is different from the one indicated in the closing, you can click [Edit] and add relevant parts that differentiate the problem. If they are problems with solutions other than those pointed out in the link, you can edit and leave a comment to consider the reopening in the question.
– Bacco