Puedes tambien usar variables con arreglos:
Código HTML:
<input type="text" name="variable[]" value="" />
y en PHP:
Código PHP:
$var = $_POST['variable'];
foreach( $var as $texto ) {
echo "$texto<br />";
}
Asi no tienes que saber el numero de registros.
Saludos.