Re: Missing characters

From: Date: Tue, 07 Feb 2006 00:12:33 +0000
Subject: Re: Missing characters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-230004@lists.php.net to get a copy of this message
Hi, Tuesday, February 7, 2006, 9:01:18 AM, you wrote: FA> I need a helping hand to solve this FA> Example FA> Page1.php FA> ======================================================= FA> $name_pro = "VC++ V2.4" FA> print "<td width='200' class='texto2'> <a FA> href='page2.php?page=&value=$name_pro'> $name_pro </a> FA> </td>"; FA> ======================================================= FA> Page2.php FA> ======================================================= FA> echo $value ; //Prints out VC V2.4 and I need VC++ V2.4 FA> Thanks in advance. You will need to use urlencode() on the $name_pro in the href tag. like: $name_pro = "VC++ V2.4" print "<td width='200' class='texto2'> <a href='page2.php?page=&value=".urlencode($name_pro)."'> $name_pro </a> </td>"; -- regards, Tom

« previous php.general (#230004) next »