Hello, I’m just trying to get the link and id name passing to other page, but when moving on the link the mouse, it shows only the first word of the ID.
Here is the example.

<?php 
	
	$id ="CURSO DEL RITE(CALEFACCI&Oacute;N,CLIMATIZACI&Oacute;N Y ACS)";
	$link = "http://www.ginerllinares.es/prog_curs/sem/inscribir.php";

	$path = "<a href=$link?id=$id>Inscripción curso</a>";

	echo"$path"; // When displays this link. There's missing the $id text, only shows //first(CURSO) word.
?>

Is there any advice?

Thanks in advance
Arsen

change line #6 to below code:

$path = "<a href=$link?id=".urlencode($id).">Inscripción curso</a>";

change line #6 to below code:

$path = "<a href=$link?id=".urlencode($id).">Inscripción curso</a>";

Thank you very much, now it work. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.