Re: ECHO $variable
| From: | Jan Bailleul | Date: | Sun, 08 Oct 2006 16:20:14 +0000 |
| Subject: | Re: ECHO $variable | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42511@lists.php.net to get a copy of this message | ||
You can as well add a backslash BEFORE the "
eg. echo "text \"more text\" ";
So that will return this: text "more text"
----- Original Message ----- From: "Bastien Koert" <bastien_k@hotmail.com>
To: <ron.php@actsministries.org>; <php-db@lists.php.net>
Sent: Sunday, October 08, 2006 3:35 PM
Subject: RE: [PHP-DB] ECHO $variable
easist way is to wrap the entire value in single quotes not double quotes...kinda breaks the rules but it will work..the other option is to search your value and do a replace on the double quotes bastienFrom: "Ron Piggott (PHP)" <ron.php@actsministries.org> Reply-To: ron.php@actsministries.org To: PHP DB <php-db@lists.php.net> Subject: [PHP-DB] ECHO $variable Date: Sun, 08 Oct 2006 01:32:13 -0400 In one of my scripts I have <input type=text name="message_title" size=40 maxlength=80 value="<?echo $saved_message_title;?>"> where $saved_message_title is 1 Peter 5:7 "Cast all your cares on Him for He cares about you" --- note the " When this is displayed on the screen it reads 1 Peter 5:7 I am assuming the " closes the value= How may I echo this to the screen and have the full text be displayed, not just 1 Peter 5:7 ? Ron-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php