RE: [PHP-WIN] addslashes
| From: | dash php | Date: | Tue, 13 Aug 2002 19:27:40 +0000 |
| Subject: | RE: [PHP-WIN] addslashes | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-15231@lists.php.net to get a copy of this message | ||
Put \"'s around the value=$nome like this:
echo "<input name=nome type=text size=60 maxlength=60 value=\"$nome\">";
-Dash
-----Original Message-----
From: Waldemar Brand Neto [mailto:wbn@softall.com.br]
Sent: Tuesday, August 13, 2002 12:29 PM
To: PHP Windows
Subject: [PHP-WIN] addslashes
Hey I'm a newbie and have a question about addslashes.
In the databse the field is complete like: Waldemar Brand Neto, but when I
get the field from it the return is trunved like Waldemar. How cam I fix
that? Thank´s.
<?php
$nome=addslashes($linha['nome']);
echo "<input name=nome type=text size=60 maxlength=60 value=$nome>";
?>
Result : Waldemar and the correct is: Waldemar Brand Neto