Re: Strings in text fields are bad
| From: | Chuck Barnett | Date: | Tue, 26 Sep 2000 03:52:48 +0000 |
| Subject: | Re: Strings in text fields are bad | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17506@lists.php.net to get a copy of this message | ||
You have to put quotes around $caddress.
Hope this helps.
-----Original Message-----
From: Tyler Longren <tyler.longren@midiowa.net>
To: PHP-General <php-general@lists.php.net>
Date: Monday, September 25, 2000 10:48 PM
Subject: [PHP] Strings in text fields are bad
>Hello everybody,
>
>When i do this:
>$caddress = "12345 Abc Ave.";
>echo "<input type=text name=caddress value=$caddress>";
>
>Why does it only print out the '12345' part of $caddress into the text
>field? It's very important that it prints all of it in there. I suppose
>this has something to do with the form field. Does it not like spaces?
>
>Regards,
>Tyler Longren
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>