Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>URL - Amigable</title>
- <link rel="shortcut icon" href="/miaa.ico" />
- </head>
- <body>
- <center>
- <div class="resultado" align="left" style="width:500px;">
- <?php
- $datos_juan = array(
- "edad" => 15,
- "sexo" => "masculino",
- "correo" => "algo@creatic.com"
- );
- $datos_pedro = array(
- "edad" => 34,
- "sexo" => "masculino",
- "correo" => "otro@creatic.com"
- );
- $datos_maria = array(
- "edad" => 19,
- "sexo" => "femenino",
- "correo" => "algo_maria@creatic.com"
- );
- $lista_clientes = array(
- "juan" => $datos_juan,
- "pedro" => $datos_pedro,
- "maria" => $datos_maria
- );
- if(isset($_GET['name']))
- {
- echo ' <p>Nombre: '.$_GET['name'].'</p>'
- .'<p>Edad: '.$lista_clientes[$_GET['name']]['edad'].'</p>'
- .'<p>Sexo: '.$lista_clientes[$_GET['name']]['sexo'].'</p>'
- .'<p>Correo: '.$lista_clientes[$_GET['name']]['correo'].'</p>';
- }
- else
- {
- echo 'No se a seleccionado ningun cliente';
- }
- ?>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement