Send info to table from a modal with php

0

Hello, I have read but I really have not succeeded, this is my code

index.php

<form class="modal fade modal_edit" id="modalNuevo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" method="post" action="/../components/insertar.php" name="nuevoregistro">
    <div class="modal-dialog modal-sm" role="document">
      <div class="modal-content modal_notif">
        <div class="modal-header ">
          <h4 class="modal-title" id="myModalLabel"><span class= " fa fa-user"></span> Agrega nueva persona</h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        </div>
        <div class="modal-body">
            <!-- <label>ID</label> -->
            <!-- <input type="text" name="" id="mod_id" class="form-control input-sm"> -->
            <label>Nombre y Apellido</label>
            <input type="text" name="mod_nomb"   id="mod_nomb"   class="form-control input-sm">
            <label>Teléfono</label>
            <input type="text" name="mod_email"  id=""  class="form-control input-sm">
            <label>Email</label>
            <input type="text" name="mod_tel"    id=""    class="form-control input-sm">
            <label>Comuna</label>
            <input type="text" name="mod_comuna" id="" class="form-control input-sm">
            <label>Creado</label>
            <input type="text" name="mod_create" id="" class="form-control input-sm">
            <label>Actualizado</label>
            <input type="text" name="mod_update" id="" class="form-control input-sm">
            <label>Estado</label> <br>
            <input type="checkbox" id="mod_status" class="input-sm" value=""> <span>Activo</span>
        </div>
        <div class="modal-footer">
          <input type="submit" class="btn btn-primary " data-dismiss="modal" id="guardarnuevo">
        </div>
      </div>
    </div>
  </form>

I think my problem would be there because I get an error saying Notice: Undefined index: mod_nomb in C: \ xampp \ htdocs \ britmedia \ naw \ dynamic_tables \ components \ table.php on line 76

probe trying to see through the name of some of my input but do not send anything and I do not know why, any suggestions?

    
asked by Naoto 11.09.2017 в 21:37
source

0 answers