pueba asi
Código PHP:
Ver original<?php
$idregistro=$_POST['idnumreg'];
$query_consulta = "select * from beneficiarios where idregistro =' ".$idregistro."'";
?>
<form action="#" method="post" >
<?php
{
?>
<input name="name" value="<?php echo $fila['idregistro']; ?>" />
<input name="name" value="<?php echo $fila['nombre']; ?>" />
<input name="name" value="<?php echo $fila['apepat']; ?>" />
<input name="name" value="<?php echo $fila['apemat']; ?>" />
<?php
}
?>
</form>