Ver Mensaje Individual
  #26 (permalink)  
Antiguo 17/05/2015, 17:55
lumt90
 
Fecha de Ingreso: abril-2015
Mensajes: 11
Antigüedad: 9 años
Puntos: 0
Respuesta: Pasar Variables de un Formulario a Otro

Experencia Laboral.php
Código PHP:
<?PHP 
session_start
();
   
      
$_SESSION['nombreReferenciaEmpre'] = $_POST['nombre-empresa'];
      
$_SESSION['telefonoReferenciaEmpre'] = $_POST['tel-ref-empresa'];
      
$_SESSION['emailReferenciaEmpre'] = $_POST['email-ref-empresa'];
      
$_SESSION['nombreContactoReferenciaEmpre'] = $_POST['contacto-empresa'];

?>


<doctype!>
<html lang="es">
    <meta charset="utf-8">
    <link rel="stylesheet" href="estiloformulario.css">
   <script type="text/javascript">
function validar(e) { // 1
    tecla = (document.all) ? e.keyCode : e.which; // 2
    if (tecla==8) return true; // 3
    patron =/[A-Zañ-z\s]/; // 4
    te = String.fromCharCode(tecla); // 5
    return patron.test(te); // 6
}
       function numero(e) { // 1
    tecla = (document.all) ? e.keyCode : e.which; // 2
    if (tecla==8) return true; // 3
    patron =/\w/; // 4
    te = String.fromCharCode(tecla); // 5
    return patron.test(te); // 6
}
       
</script>
<head>
    
<title>Registro Postulante</title>
    
   
    
</head>
<body>

<header>
    <p id="cabeza">TecnoPoint</p>
    
    </header>
    
    <aside>
       
        <p id="info">Formulario de Reclutamiento<br><br>(Experiencia Laboral)</p>
           
            
         <form action="Informacion Adiccional.php" method="POST">   
        
      <br><br><label id="area">Area:</label>
        <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="">
            
        
  <br><br><label id="cargo">Cargo:</label>
        <br><input title="ingrese el cargo" type="text" name="cargo-exp-lab" placeholder="Cargo que desempeno" onkeypress="return validar(event)" required="">
            
   <br><br><label id="salario">Salario:</label>
        <br><input title="ingrese un salario" type="text" name="salario-exp-lab" placeholder="salario en cordobas"  required="">
             
         
             <br><br><label id="empresa">Empresa:</label>
        <br><input title="ingrese un centro de trabajo" type="text" name="empresa-exp-lab" placeholder="empresa que laboro" onkeypress="return validar(event)" required="">
             
                <br><br><label id="fechae">Fecha de Entrada:</label>
        <br><input title="digite una fecha" type="date" name="fecha-entr-exp-lab" required="">
             
             
                <br><br><label id="fechas">Fecha de Salida:</label>
        <br><input title="digite una fecha" type="date" name="fecha-sal-exp-lab" required="">
             
             <br><br><label id="motivo">Motivo de Salida:</label>
        <br><input type="text" name="motivo-sal-exp-lab" onkeypress="return validar(event)" required="">
             
             <br><br><label id="estadolaboral">Estado Laboral:</label>
        <br><select name="estado-lab" onChange="combo(this, 'lista')">
         <option>
   <option> desempleado
   <option> Actualmente trabajando
        
</select>


        <br><br><input type="submit" value="siguiente"> 

        <input type="submit" value="inicio" onclick = "location='../aniweblogeado/Aniweblogeado.html'"/>

     
   <!--     <br><br> <p> <a href="Informacion Adiccional.html"> Siguiente</a> </p> -->
    

    
      </form>
   </aside>
  
<footer>
 <small><cite>Tecnopoint Sistema de informacion de recursos humanos SIRHU  </cite></small>
    </footer>

</body>
</html>


Informacion Adiccional.php
Código PHP:
<?PHP 
session_start
();


        
$_SESSION['areaExperiencia'] = $_POST['area-exp-lab'];
        
$_SESSION['cargoExperiencia'] = $_POST['cargo-exp-lab'];
        
$_SESSION['salarioExperiencia'] = $_POST['salario-exp-lab'];
        
$_SESSION['empresaExperiencia'] = $_POST['empresa-exp-lab'];
        
$_SESSION['fechaEntradaExperiencia'] = $_POST['fecha-entr-exp-lab'];
        
$_SESSION['fechaSalidaExperiencia'] = $_POST['fecha-sal-exp-lab'];
        
$_SESSION['motivoSalidaExperiencia'] = $_POST['motivo-sal-exp-lab'];
        
$_SESSION['estadoLaboralExperiencia'] = $_POST['estado-lab'];

?>



<doctype!>
<html lang="es">
    <meta charset="utf-8">
    <link rel="stylesheet" href="estiloformulario.css">
   <script type="text/javascript">
function validar(e) { // 1
    tecla = (document.all) ? e.keyCode : e.which; // 2
    if (tecla==8) return true; // 3
    patron =/[A-Za-zñ\s]/; // 4
    te = String.fromCharCode(tecla); // 5
    return patron.test(te); // 6
}
       function numero(e) { // 1
    tecla = (document.all) ? e.keyCode : e.which; // 2
    if (tecla==8) return true; // 3
    patron =/\w/; // 4
    te = String.fromCharCode(tecla); // 5
    return patron.test(te); // 6
}
       
</script>
<head>
    
<title>Registro Postulante</title>
    
   
    
</head>
<body>

<header>
    <p id="cabeza">TecnoPoint</p>
    
    </header>
    
    <aside>
       
        <p id="info">Formulario de Reclutamiento<br><br>(Informacion Adiccional)</p>
           
            
         <form action="envio-datos-transac.php" method="POST">   
        
        <br><br><label id="dishor">Disponibilidad de Horario:</label>
        <br><select name="disponibilidad-hora" required="" onChange="combo(this, 'lista')">
             <option>
   <option> Tiempo Completo
   <option> Medio Tiempo
       
</select>
            
          <br><br><label id="vehprop">Vehiculo Propio:</label>
        <br><select name="vehiculo" required="" onChange="combo(this, 'lista')">
             <option>
   <option> Si
   <option> No
       
</select>
             



        <br><br><label id="vehinfo">Tipo Vehiculo:</label>
       <br><select title="Seleccione un tipo de vehiculo" name="tipo-vehiculo" required="" onChange="combo(this, 'lista')">
             <option>
   <option> Automovil
    <option> camioneta
      <option> camion mas de 3 tn
      <option> motocicleta
</select>
      
                     
   <br><br><label id="inf">Informacion Adicional:</label>
        <br><input  type="text" name="info-adicional">
             
     
      <!--  <br><br> <p> <a href="Experencia Laboral.html"> Atras</a> </p>  -->
    
        <br><br><input type="submit" value="enviar">

        <input type="submit" value="inicio" onclick = "location='../aniweblogeado/Aniweblogeado.html'"/>
    
      </form>
   </aside>
  
<footer>
 <small><cite>Tecnopoint Sistema de informacion de recursos humanos SIRHU  </cite></small>
    </footer>

</body> 
</html>