RE: [PHP] Strings in text fields are bad
| From: | Tyler Longren | Date: | Tue, 26 Sep 2000 05:57:18 +0000 |
| Subject: | RE: [PHP] Strings in text fields are bad | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17509@lists.php.net to get a copy of this message | ||
Thanks to everybody who replied. that was pretty obvious...thanks for
helping me see it. :)
It works cool now.
Thanks!
Tyler
-----Original Message-----
From: Toby Miller [mailto:tmiller@creativegeneration.com]
Sent: Monday, September 25, 2000 8:51 PM
To: Tyler Longren; PHP-General
Subject: Re: [PHP] Strings in text fields are bad
Tyler,
The problem is not with PHP. It's with your HTML. Try this:
$caddress = "12345 Abc Ave.";
echo "<input type='text' name='caddress'
value='$caddress'>";
Toby
At 01:49 AM 9/26/00, Tyler Longren wrote:
>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
--
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