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

Referencia Personal.php
Código PHP:
<?PHP 
session_start
(); 

  
$_SESSION['carreraPostulante'] = $_POST['carrera'];
  
$_SESSION['gradoEstudioPostulante'] = $_POST['grado'];
  
$_SESSION['ultimoEstudioPostulante'] = $_POST['ultimo-estudio'];
  
$_SESSION['especialidadPostulante'] = $_POST['especialidada'];
  
$_SESSION['areainteresPostulante'] = $_POST['area-interes'];
  
$_SESSION['otrasAreasPostulante'] = $_POST['otra-area'];
  
$_SESSION['fechaReclutamientoPostulante'] = $_POST['fecha'];
?>


<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>(Referencia Personal)</p>
           
            
         <form action="Referencia Empresa.php" method="POST">   
        
      <br><br><label id="nombre">Nombre:</label>
        <br><input title="ingrese su nombre" type="text" name="nombre-referencia" placeholder="Nombre" onkeypress="return validar(event)" required="">
            
        
  <br><br><label id="apellido">Apellido:</label>
        <br><input title="ingrese su apellido" type="text" name="apellido-referencia" placeholder="Apellido" onkeypress="return validar(event)" required="">
            
   <br><br><label id="telefono">Telefono:</label>
        <br><input title="ingrese su numero de telefono" type="tel" name="telefono-referencia" placeholder="+(505)2222-0000" required="">
             <br><br><label id="correo">Correo Electronico:</label>
        <br><input title="se necesita un correo" type="email" name="email-referncia" placeholder="Correo Electronico" required="">
             
             <br><br><label id="cargo">Cargo Desempenado:</label>
        <br><input title="ingrese un cargo" type="text" name="cargo-referencia" placeholder="Cargo que Desempena" onkeypress="return validar(event)" required="">
             
             <br><br><label id="empresa">Nombre de Empresa:</label>
        <br><input title="ingrese una empresa" type="text" name="empresa-referencia" placeholder="Nombre de Empresa" onkeypress="return validar(event)" required="">
        
       <br><br><input type="submit" value="siguiente"> 

         

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

        <!-- <br><br> <p> <a href="Referencia Empresa.html"> Siguiente</a> </p> -->
    
      </form>
   </aside>
  
<footer>
 <small><cite>Tecnopoint Sistema de informacion de recursos humanos SIRHU  </cite></small>
    </footer>

</body>
</html>



Referencia Empresa.php
Código PHP:
<?php
session_start
();

    
$_SESSION['nombreReferenciaPers'] = $_POST['nombre-referencia'];
    
$_SESSION['apellidoReferenciaPers'] = $_POST['apellido-referencia'];
    
$_SESSION['telefonoReferenciaPers'] = $_POST['telefono-referencia'];
    
$_SESSION['emailReferenciaPers'] = $_POST['email-referncia'];
    
$_SESSION['cargoReferenciaPers'] = $_POST['cargo-referencia'];
    
$_SESSION['nombreEmpresaReferenciaPers'] = $_POST['empresa-referencia'];
?>


<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>(Referencia Empresa)</p>
           
            
         <form action="Experencia Laboral.php" method="POST">   
        
      <br><br><label id="nombre">Nombre Empresa:</label>
        <br><input title="ingrese el nombre" type="text" name="nombre-empresa" placeholder="Nombre Empresa" onkeypress="return validar(event)" required="">
            
            
   <br><br><label id="telefono">Telefono:</label>
        <br><input title="ingrese el numero de telefono" type="tel" name="tel-ref-empresa" placeholder="+(505)2222-0000" required="">

             <br><br><label id="correo">Correo Electronico:</label>
        <br><input title="se necesita un correo" type="email" name="email-ref-empresa" placeholder="Correo Electronico" required="">
             
             
             <br><br><label id="empresa">Nombre del Contacto:</label>
        <br><input title="ingrese un contacto" type="text"  name="contacto-empresa" placeholder="Nombre del contacto" onkeypress="return validar(event)" required="">
        
         <br><br><input type="submit" value="Siguiente">  

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

        
       <!-- <br><br> <p> <a href="Experencia Laboral.html"> Siguiente</a> </p> -->
    
      </form>
   </aside>
  
<footer>
 <small><cite>Tecnopoint Sistema de informacion de recursos humanos SIRHU  </cite></small>
    </footer>

</body>
</html>