I'm passing a value using href with php and get method but I think my syntax is wrong since it does not recognize me in the url this is my code
$dni=09309393;
echo'
<label id="msjgd">EL PACIENTE SE REGISTRO CORRECTAMENTE EN LA PRIMERA FASE</label><br>
<a id="cclinico" href="tarjeta.php?dni=$dni">CLICK PARA REGISTRAR CONTROL CLINICO</a>
';
but in the url I get card.php? dni = $ dni and you should leave tarjeta.php? dni = 09309393
thanks