Good evening guys, I have a question about modal. I have an address confirmation form, however I have sent my data via bank, so alright, the problem is: I would like to know when I click on the confirm button as I do for him to return me a modal "Your request has been registered" ?
Requests.php
<form action="connectpedido.php" id="contact_form" class="contact-form" method="post">
<ul class="row">
<li class="col-sm-12">
<label>
<input type="text" class="form-control" name="cliente_nome" id="nome" placeholder="Nome *" x-moz-errormessage="campo obrigatório" required />
</label>
</li>
<li class="col-sm-6">
<label>
<input type="text" class="form-control" name="cliente_email" id="email" placeholder="E-mail *" required x-moz-errormessage="campo obrigatório" />
</label>
</li>
<li class="col-sm-6">
<label>
<input type="text" class="form-control" name="cliente_telefone" id="telefone" placeholder="Telefone *" required x-moz-errormessage="campo obrigatório" />
</label>
</li>
<li class="col-sm-6">
<label>
<input type="text" class="form-control" name="cliente_bairro" id="bairro" placeholder="Bairro *" required x-moz-errormessage="campo obrigatório" />
</label>
</li>
<li class="col-sm-6">
<label>
<input type="text" class="form-control" name="cliente_rua" id="rua" placeholder="rua *" required x-moz-errormessage="campo obrigatório" />
</label>
</li>
<li class="col-sm-6">
<label>
<input type="text" class="form-control" name="cliente_complemento" id="complemento" placeholder="complemento *" />
</label>
</li>
</ul>
<div class="col-sm-12 text-center">
<input type="submit" id="bt-confirmar" class="btn btn-default " value="CONFIRMAR" name="confirmar" />
</div>
</form>
connectpedido.php
<?php
include_once("scripts/config.php");
include_once("scripts/funcoes.php");
?>
<?php
$objConn = new objConexao();
$conn = $objConn->fcnConn();
$nome = $_POST['cliente_nome'];
$email = $_POST['cliente_email'];
$telefone = $_POST['cliente_telefone'];
$bairro = $_POST['cliente_bairro'];
$rua = $_POST['cliente_rua'];
$complemento = $_POST['cliente_complemento'];
$sql = "INSERT INTO cliente(cliente_nome,cliente_email,cliente_telefone,cliente_bairro,cliente_rua,cliente_complemento) VALUES ";
$sql .= "('$nome', '$email', '$telefone','$bairro','$rua','$complemento')";
echo $sql;
mysql_query($sql,$conn) or die(mysql_error());
mysql_close($conn);
echo "Cliente cadastrado com sucesso!";
?>
When I press the confirm button it redirects me and triggers the confirmation echo, I would like it to trigger the message within a modal, without displaying the bank's values how could I do that?