Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/12/2015, 16:17
mordvinia
 
Fecha de Ingreso: enero-2015
Mensajes: 48
Antigüedad: 9 años, 3 meses
Puntos: 0
Respuesta: No se envían datos a la base de datos

El fomulario lo tengo en un archivo aparte, ahí va:
Código HTML:
Ver original
  1. <form id="form1" name="form1" method="post" action="guardar.php">
  2.       <p> <center>
  3.         <strong>Datos del estudiante</strong>
  4.       </center></p>
  5.       <p>
  6.         <label for="CedulaEscolar"> Cédula Escolar</label>
  7.         <input type="text" name="CedulaEscolar" id="CedulaEscolar" />
  8.         <label for="Apellidos2">Apellidos</label>
  9.         <input type="text" name="Apellidos" id="Apellidos2" />
  10.         <label for="Nombres2"> Nombres</label>
  11.         <input type="text" name="Nombres" id="Nombres2" />
  12.         <label for="Grado">Grado</label>
  13.         <select name="Grado" id="Grado">
  14.           <option>Seleccionar</option>
  15.           <option>1er</option>
  16.           <option>2do</option>
  17.           <option>3er</option>
  18.           <option>4to</option>
  19.           <option>5to</option>
  20.           <option>6to</option>
  21.         </select>
  22.       </p>
  23.       <p><label></label>
  24.         <label for="Nacionalidad"> Nacionalidad</label>
  25.         <select name="Nacionalidad" id="Nacionalidad">
  26.           <option>Venezolano</option>
  27.           <option>Extranjero</option>
  28.         </select>
  29.       &nbsp;
  30.       <label for="FN">Fecha de nacimiento</label>
  31.       <input type="text" name="FN" id="FN" />
  32.       <label for="Lugar de nacimiento2">Lugar de nacimiento</label>
  33.       <input type="text" name="L_N" id="Lugar de nacimiento2" />
  34.       </p>
  35.       <p>
  36.         <label for="DirHab">Dirección de habitación</label>
  37.         <input type="text" name="DirHab" id="DirHab" />
  38.         <label for="Telefono">Teléfono</label>
  39.         <input type="text" name="Telefono" id="Telefono" />
  40.       </p>
  41.       <p>
  42.         <label for="Sangre">Tipo de sangre</label>
  43.         <input name="Sangre" type="text" id="Sangre" size="5" />
  44.         <label for="Enfermedades">Enfermedades</label>
  45.         <textarea name="Enfermedades" id="Enfermedades" cols="20" rows="5"></textarea>
  46.         <label for="Alergias">Alergias</label>
  47.         <textarea name="Alergias" id="Alergias" cols="20" rows="5"></textarea>
  48.       </p>
  49.       <p>
  50.       <center>
  51.           <hr />
  52.         <p><strong>Datos de los padres </strong></p></center></p>
  53.       <p>
  54.         <center>
  55.           <strong>Padre</strong>
  56.         </center>
  57.       </p>
  58.       <p>
  59.         <label for="CP">Cédula</label>
  60.         <input type="text" name="CP" id="CP" />
  61.         <label for="Apellidos3">Apellidos</label>
  62.         <input type="text" name="Apellidos4" id="Apellidos3" />
  63.         <label for="Nombres3"> Nombres</label>
  64.         <input type="text" name="Nombres4" id="Nombres3" />
  65.         <label for="DirHab2">Dirección de habitación</label>
  66.         <input type="text" name="DirHab4" id="DirHab2" />
  67.       </p>
  68.       <p>
  69.         <label for="Telefono">Teléfono</label>
  70.         <input type="text" name="Telefono2" id="Teléfono" />
  71.         <label for="OcuR">Ocupación</label>
  72.         <input type="text" name="OcuP" id="Ocupación3" />
  73.         <label for="Lugar de trabajo4">Lugar de trabajo</label>
  74.         <input type="text" name="TrabaP" id="Lugar de trabajo4" />
  75.       </p>
  76.       <p>
  77.         <center>
  78.           <strong> Madre</strong>
  79.         </center>
  80.       </p>
  81.       <p>
  82.         <label for="CP">Cédula</label>
  83.         <input type="text" name="CedulaM" id="CedulaM" />
  84.         <label for="Apellidos4">Apellidos</label>
  85.         <input type="text" name="Apellidos2" id="Apellidos4" />
  86.         <label for="Nombres4"> Nombres</label>
  87.         <input type="text" name="Nombres2" id="Nombres4" />
  88.         <label for="DirHab3">Dirección de habitación</label>
  89.         <input type="text" name="DirHab2" id="DirHab3" />
  90.       </p>
  91.       <p>
  92.         <label for="Telefono">Teléfono</label>
  93.         <input type="text" name="Telefono2" id="Teléfono" />
  94.         <label for="Ocupación4">Ocupación</label>
  95.         <input type="text" name="OcuM" id="Ocupación4" />
  96.         <label for="Lugar de trabajo5">Lugar de trabajo</label>
  97.         <input type="text" name="TrabaM" id="Lugar de trabajo5" />
  98.       </p>
  99.       <hr />
  100.       <p>
  101.         <center>
  102.       <strong>Datos del Representante</strong></center></p>
  103.       <p>
  104.         <center>
  105.         </center>
  106.       </p>
  107.       <p>
  108.         <label for="CedulaR">Cédula</label>
  109.         <input type="text" name="CedulaR" id="CedulaR" />
  110.         <label for="Apellidos5">Apellidos</label>
  111.         <input type="text" name="Apellidos3" id="Apellidos5" />
  112.         <label for="Nombres5"> Nombres</label>
  113.         <input type="text" name="Nombres3" id="Nombres5" />
  114.         <label for="DirHab4">Dirección de habitación</label>
  115.         <input type="text" name="DirHab3" id="DirHab4" />
  116.       </p>
  117.       <p>
  118.         <label for="Telefono">Teléfono</label>
  119.         <input type="text" name="TelefonoR" id="Teléfono" />
  120.         <label for="Ocupación5">Ocupación</label>
  121.         <input type="text" name="OcuR" id="Ocupación5" />
  122.         <label for="Lugar de trabajo6">Lugar de trabajo</label>
  123.         <input type="text" name="TrabaR" id="Lugar de trabajo6" />
  124.       </p>
  125.       <p align="center">
  126.          <input type="submit" name="Submit" id="Submit" value="Guardar" />
  127.         <input type="reset" name="Reset" id="Reset" value="Borrar todo" />
  128.       </p>
  129. </form>