RE: [PHP] Missing characters
| From: | Brady Mitchell | Date: | Mon, 06 Feb 2006 23:43:17 +0000 |
| Subject: | RE: [PHP] Missing characters | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-230002@lists.php.net to get a copy of this message | ||
> Example
> Page1.php
> =======================================================
> $name_pro = "VC++ V2.4"
> print "<td width='200' class='texto2'> <a
href='page2.php?page=&value=$name_pro'> $name_pro </a></td>";
Use urlencode (http://php.net/urlencode):
print "<td width='200' class='texto2'> <a
href='page2.php?page=&value=".urlencode($name_pro)."'> $name_pro
</a>
</td>";
Brady