En tu
index pones un campo oculto (hidden) para que reciba el login (vía get), luego pones los campos de nombre y dni, y al form le agregas el método tipo get:
En la página
datos.php, imprimes las variables con
$_GET.
--
Traducción:
index.php Código PHP:
<form method="get" action="datos.php">
<input type="hidden" value="<?php echo $_GET['login']?>"/>
<input type="text" name="nombre"/>
<input type="text" name="dni"/>
</form>
datos.php Código PHP:
print_r($_GET) ; //listar variables
## detallar variables
echo '
login -> ' . $_GET['login'] . '<br/>
nombre ->' . $_GET['nombre'] . '<br/>
dni ->' . $_GET['dni'] ;
Saludos.