我正在使用模态表单并尝试提交mysql数据库的数据,但是当我点击提交按钮时,模态关闭和数据库没有收到任何内容。
示例:
<form action="proc_cad_os.php" method="POST">
<div class="row">
<div class="col s12">
<div class="row">
<div class="input-field col s6">
<input name="num" type="text" class="validate">
<label>Nº - OS</label>
</div>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="modal-close waves-effect waves-light btn light white-text red" >Cancelar</button>  
<button class="btn waves-effect waves-light green" type="submit" name="action" value="submit">Gerar OS<i class="material-icons right">send</i>
</button>
</div>
</form>