RE: [PHP-WIN] Problem sending variables with an browser
| From: | Dash McElroy | Date: | Tue, 30 Apr 2002 20:18:31 +0000 |
| Subject: | RE: [PHP-WIN] Problem sending variables with an browser | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-13426@lists.php.net to get a copy of this message | ||
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:wbn@softall.com.br]
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