Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/05/2015, 18:08
lumt90
 
Fecha de Ingreso: abril-2015
Mensajes: 11
Antigüedad: 9 años
Puntos: 0
Respuesta: como envio 6 formularios por session a mysql por medio de un transac

Experencia Laboral.php

Código HTML:
Ver original
  1. <?PHP
  2. session_start();
  3.  
  4.      $_SESSION['nombreReferenciaEmpre'] = $_POST['nombre-empresa'];
  5.      $_SESSION['telefonoReferenciaEmpre'] = $_POST['tel-ref-empresa'];
  6.      $_SESSION['emailReferenciaEmpre'] = $_POST['email-ref-empresa'];
  7.      $_SESSION['nombreContactoReferenciaEmpre'] = $_POST['contacto-empresa'];
  8.  
  9. ?>
  10.  
  11.  
  12. <doctype!>
  13. <html lang="es">
  14.     <meta charset="utf-8">
  15.     <link rel="stylesheet" href="estiloformulario.css">
  16.    <script type="text/javascript">
  17. function validar(e) { // 1
  18.     tecla = (document.all) ? e.keyCode : e.which; // 2
  19.     if (tecla==8) return true; // 3
  20.     patron =/[A-Zañ-z\s]/; // 4
  21.     te = String.fromCharCode(tecla); // 5
  22.     return patron.test(te); // 6
  23. }
  24.        function numero(e) { // 1
  25.     tecla = (document.all) ? e.keyCode : e.which; // 2
  26.     if (tecla==8) return true; // 3
  27.     patron =/\w/; // 4
  28.     te = String.fromCharCode(tecla); // 5
  29.     return patron.test(te); // 6
  30. }
  31.        
  32.    
  33. <title>Registro Postulante</title>
  34.    
  35.    
  36.    
  37. </head>
  38.  
  39.     <p id="cabeza">TecnoPoint</p>
  40.    
  41.     </header>
  42.    
  43.     <aside>
  44.        
  45.         <p id="info">Formulario de Reclutamiento<br><br>(Experiencia Laboral)</p>
  46.            
  47.            
  48.          <form action="Informacion Adiccional.php" method="POST">  
  49.        
  50.       <br><br><label id="area">Area:</label>
  51.         <br><input title="ingrese el area en que laboro" type="text" name="area-exp-lab" placeholder="Area en la que laboro" onkeypress="return validar(event)" required="">
  52.            
  53.        
  54.   <br><br><label id="cargo">Cargo:</label>
  55.         <br><input title="ingrese el cargo" type="text" name="cargo-exp-lab" placeholder="Cargo que desempeno" onkeypress="return validar(event)" required="">
  56.            
  57.    <br><br><label id="salario">Salario:</label>
  58.         <br><input title="ingrese un salario" type="text" name="salario-exp-lab" placeholder="salario en cordobas"  required="">
  59.              
  60.          
  61.              <br><br><label id="empresa">Empresa:</label>
  62.         <br><input title="ingrese un centro de trabajo" type="text" name="empresa-exp-lab" placeholder="empresa que laboro" onkeypress="return validar(event)" required="">
  63.              
  64.                 <br><br><label id="fechae">Fecha de Entrada:</label>
  65.         <br><input title="digite una fecha" type="date" name="fecha-entr-exp-lab" required="">
  66.              
  67.              
  68.                 <br><br><label id="fechas">Fecha de Salida:</label>
  69.         <br><input title="digite una fecha" type="date" name="fecha-sal-exp-lab" required="">
  70.              
  71.              <br><br><label id="motivo">Motivo de Salida:</label>
  72.         <br><input type="text" name="motivo-sal-exp-lab" onkeypress="return validar(event)" required="">
  73.              
  74.              <br><br><label id="estadolaboral">Estado Laboral:</label>
  75.         <br><select name="estado-lab" onChange="combo(this, 'lista')">
  76.          <option>
  77.    <option> desempleado
  78.    <option> Actualmente trabajando
  79.        
  80.  
  81.  
  82.         <br><br><input type="submit" value="siguiente">
  83.  
  84.         <input type="submit" value="inicio" onclick = "location='../aniweblogeado/Aniweblogeado.html'"/>
  85.  
  86.      
  87.    <!--     <br><br> <p> <a href="Informacion Adiccional.html"> Siguiente</a> </p> -->
  88.    
  89.  
  90.    
  91.       </form>
  92.    </aside>
  93.  
  94.  <small><cite>Tecnopoint Sistema de informacion de recursos humanos SIRHU  </cite></small>
  95.     </footer>
  96.  
  97. </body>
  98. </html>

Informacion Adiccional.php
Código HTML:
Ver original
  1. <?PHP
  2. session_start();
  3.  
  4.  
  5.        $_SESSION['areaExperiencia'] = $_POST['area-exp-lab'];
  6.        $_SESSION['cargoExperiencia'] = $_POST['cargo-exp-lab'];
  7.        $_SESSION['salarioExperiencia'] = $_POST['salario-exp-lab'];
  8.        $_SESSION['empresaExperiencia'] = $_POST['empresa-exp-lab'];
  9.        $_SESSION['fechaEntradaExperiencia'] = $_POST['fecha-entr-exp-lab'];
  10.        $_SESSION['fechaSalidaExperiencia'] = $_POST['fecha-sal-exp-lab'];
  11.        $_SESSION['motivoSalidaExperiencia'] = $_POST['motivo-sal-exp-lab'];
  12.        $_SESSION['estadoLaboralExperiencia'] = $_POST['estado-lab'];
  13.  
  14. ?>
  15.  
  16.  
  17.  
  18. <doctype!>
  19. <html lang="es">
  20.     <meta charset="utf-8">
  21.     <link rel="stylesheet" href="estiloformulario.css">
  22.    <script type="text/javascript">
  23. function validar(e) { // 1
  24.     tecla = (document.all) ? e.keyCode : e.which; // 2
  25.     if (tecla==8) return true; // 3
  26.     patron =/[A-Za-zñ\s]/; // 4
  27.     te = String.fromCharCode(tecla); // 5
  28.     return patron.test(te); // 6
  29. }
  30.        function numero(e) { // 1
  31.     tecla = (document.all) ? e.keyCode : e.which; // 2
  32.     if (tecla==8) return true; // 3
  33.     patron =/\w/; // 4
  34.     te = String.fromCharCode(tecla); // 5
  35.     return patron.test(te); // 6
  36. }
  37.        
  38.    
  39. <title>Registro Postulante</title>
  40.    
  41.    
  42.    
  43. </head>
  44.  
  45.     <p id="cabeza">TecnoPoint</p>
  46.    
  47.     </header>
  48.    
  49.     <aside>
  50.        
  51.         <p id="info">Formulario de Reclutamiento<br><br>(Informacion Adiccional)</p>
  52.            
  53.            
  54.          <form action="envio-datos-transac.php" method="POST">  
  55.        
  56.         <br><br><label id="dishor">Disponibilidad de Horario:</label>
  57.         <br><select name="disponibilidad-hora" required="" onChange="combo(this, 'lista')">
  58.              <option>
  59.    <option> Tiempo Completo
  60.    <option> Medio Tiempo
  61.        
  62.            
  63.           <br><br><label id="vehprop">Vehiculo Propio:</label>
  64.         <br><select name="vehiculo" required="" onChange="combo(this, 'lista')">
  65.              <option>
  66.    <option> Si
  67.    <option> No
  68.        
  69.              
  70.  
  71.  
  72.  
  73.         <br><br><label id="vehinfo">Tipo Vehiculo:</label>
  74.        <br><select title="Seleccione un tipo de vehiculo" name="tipo-vehiculo" required="" onChange="combo(this, 'lista')">
  75.              <option>
  76.    <option> Automovil
  77.     <option> camioneta
  78.       <option> camion mas de 3 tn
  79.       <option> motocicleta
  80.      
  81.                      
  82.    <br><br><label id="inf">Informacion Adicional:</label>
  83.         <br><input  type="text" name="info-adicional">
  84.              
  85.      
  86.       <!--  <br><br> <p> <a href="Experencia Laboral.html"> Atras</a> </p>  -->
  87.    
  88.         <br><br><input type="submit" value="enviar">
  89.  
  90.         <input type="submit" value="inicio" onclick = "location='../aniweblogeado/Aniweblogeado.html'"/>
  91.    
  92.       </form>
  93.    </aside>
  94.  
  95.  <small><cite>Tecnopoint Sistema de informacion de recursos humanos SIRHU  </cite></small>
  96.     </footer>
  97.  
  98. </body>
  99. </html>