Quantcast
Channel: Últimos conteúdos
Viewing all articles
Browse latest Browse all 14190

Erro com formulário e Isset

$
0
0

Não acho o erro desse codigo:

 

<?php
if(isset($_POST["segunda"])){
$query_segunda = "INSERT INTO segunda (de_seg, ate_seg, apos_seg, fim_seg) VALUES ('$de_seg', '$ate_seg', '$apos_seg', '$fim_seg')";
 
echo "HORÁRIO DE SEGUNDA ALTERADO COM SUCESSO!";

}
?>

<form action="" method="post" class="btnIndice">
    <div class="unicoform">
<span class="txtForm">DE (abre de manhã):</span><br>
<input name="de_seg" type="text" class="inputForm" id="de_seg" required="required"/>
</div>
    <div class="unicoform">
<span class="txtForm">ATÉ (fecha para almoço):</span><br>
<input name="ate_seg" type="text" class="inputForm" id="ate_seg" required="required"/>
</div>
    <div class="unicoform">
<span class="txtForm">APÓS (abre a tarde):</span><br>
<input name="apos_seg" type="text" class="inputForm" id="apos_seg" required="required"/>
</div>
    <div class="unicoform">
<span class="txtForm">FIM (fim do expediente):</span><br>
<input name="fim_seg" type="text" class="inputForm" id="fim_seg" required="required"/>
</div>
     <input type="submit" value="Gravar" name="segunda" class="btnForm">

</form>

Viewing all articles
Browse latest Browse all 14190

Trending Articles