echo "<a href='creapdf.php?id=".$array[id]."'>Imprimir </a>"; .... ... ... // En creapdf.php $id=$_GET['id'];