Re: Text?
| From: | Rasmus Lerdorf | Date: | Wed, 18 Oct 2000 18:28:34 +0000 |
| Subject: | Re: Text? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20953@lists.php.net to get a copy of this message | ||
On Wed, 18 Oct 2000, Wee Chua wrote:
> Hi all,
> I have passed a value like name=John Smith to the second page inside the
> form. When I do echo "<input type=text name=fullname value=$name>, I only
> see John one word display inside the text box, but if I just echo "$name";
> it gives me John Smith. How could I eliminate the space between the value
> inside the text box? Could anyone tell me how to do it, thank you very much!
echo "<input type=text name=fullname value=\"$name\">";
(and please do not crosspost questions to multiple PHP mailing lists)
-Rasmus