Está en la página 1de 2

<?php session_start();?

>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin ttulo</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-
ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script type="text/javascript">
$(document).ready(function(){
$('body').hide();
$('body').fadeIn(1000);
});
</script>
<script language="javascript">
function etapaok(){
$(function() {
$( "#dialog-confirm" ).dialog({
// resizable: false,
height:350,

modal: true,
buttons: {
"Continuar": function() {
$( this ).dialog( "close" );
window.location = 'etapa6.php';
},
"En otro momento": function() {
$( this ).dialog( "close" );
window.location = 'login.php';
}
}
});
});

}
</script>
</head>

<body background="imagenes/logofondo.png">
<div id="dialog-confirm" title="Pagina 5 terminada">
<p><span class="" style="float:left"></span>Sus respuestas han sido almacenadas
correctamente, Desea continuar con la siguiente pgina?</p>
</div>
<?php

include 'funciones.php';

$rut = $_SESSION['rut'];
$p1 = $_POST['p1'];
$p2 = $_POST['p2'];
$p3 = $_POST['p3'];
$p4 = $_POST['p4'];
$p5 = $_POST['p5'];
/*echo "respuesta 1 : ".$p1."<br>";
echo "respuesta 2 : ".$p2."<br>";
echo "respuesta 3 : ".$p3."<br>";
echo "respuesta 4 : ".$p4."<br>";
echo "respuesta 5 : ".$p5."<br>";*/

$_GRABAR_SQL = "UPDATE etapa5 SET cincop1='$p1', cincop2='$p2',


cincop3='$p3', cincop4='$p4', cincop5='$p5', fecha=NOW() WHERE rut='$rut'";
mysql_query($_GRABAR_SQL);

$_GRABAR_SQL2 = "UPDATE usuarios SET etapa5='completo' WHERE rut='$rut'";


mysql_query($_GRABAR_SQL2);

?>
<script> etapaok();</script>
<?php

?>

</body>
</html>

También podría gustarte