use: urlencode($param)

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -----Original Message-----
> From: Dash McElroy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 30, 2002 4:19 PM
> To: 'Waldemar Brand Neto'; Php
> Subject: RE: [PHP-WIN] Problem sending variables with an browser
> 
> 
> Put quotes in the href="" part like this:
> 
> echo "<a href=\"Produto1.php?nome=$parametro\">". $ix." </a>";
> 
> You may want to convert the spaces to %20's (there must be a 
> PHP function to
> do this...).
> 
> -Dash
> 
> -----Original Message-----
> From: Waldemar Brand Neto [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, April 30, 2002 1:17 PM
> To: Php
> Subject: [PHP-WIN] Problem sending variables with an browser
> 
> 
> Hy, I am a newbie in php and I have a problem sending variables.
> 
> This is the part of the code wth problem
> $paramentro="TUBOS E CONEXOES TIGRE";
> echo "<td align=center>";
> echo "<a href=Produto1.php?nome=$parametro>". $ix." </a>";
> echo "</td>";
> 
> When I pass the mouse over the link the browser show to me:
> 
> Produto.php?nome=TUBOS.
> Every caracther after the space is ignored.
> Could anyone help me.
> 
> Thanks
> 
> Waldemar
> 
> 
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to