Advertisement
Guest User

Untitled

a guest
May 25th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. <?php
  2.     session_name();
  3.     session_start();
  4.     $_SESSION['usuario']=$_POST['nombre'] ;
  5.     $_SESSION['colorfondo']=$_POST['color'];
  6. ?>
  7.  
  8. <html>
  9.     <head>
  10.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  11.         <style type="text/css"> body{background-color:
  12.             <?php echo $_SESSION['colorfondo'];?>}
  13.         </style>
  14.     <title>Problema</title>
  15.     </head>
  16.         <body>
  17.        
  18.        
  19.        <?php
  20.         echo "Nombre del usuario es ".$_SESSION['usuario']."<br>";
  21.        ?>
  22.         <a href="pagina3_36ite.php?<?echo session_name()."=".session_id()?>">Propagar sesión</a>
  23.        
  24.        </body>
  25.    
  26. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement