Re: output data to a text box
| From: | Leif Gregory | Date: | Fri, 28 Oct 2005 22:08:51 +0000 |
| Subject: | Re: output data to a text box | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-26446@lists.php.net to get a copy of this message | ||
Hello Panos,
Friday, October 28, 2005, 3:05:48 PM, you wrote:
> What i'm trying to do, is manipulate data that will appear in
> something that will look like a multiline textbox. Unfortunately
> <textarea> doesn't allow tags within it, thus not <?php... either.
Looks like a textarea or is a textarea. Two different things. If you
want it to look like a textarea, do something like:
<div style="border-style: solid; border-width: 1px;"><?php echo
$text;?></div>
Although I prefer to use inset borders like:
<div style="border-style: inset;"><?php echo $text;?></div>
Play with css padding till you like it.
If it is a texarea, then do something like this:
echo '<textarea rows="10" cols="50">' . $original_text .
'</textarea>';
You might need one or more of the following depending on what you're
displaying:
nl2br()
htmlentities()
htmlspecialchars()
--
TBUDL/BETA/DEV/TECH Lists Moderator / PGP 0x6C0AB16B
__ ____ ____ ____ Geocaching: http://gps.PCWize.com
( ) ( ___)(_ _)( ___) TBUDP Wiki Site: http://www.PCWize.com/thebat/tbudp
)(__ )__) _)(_ )__) Roguemoticons & Smileys: http://PCWize.com/thebat
(____)(____)(____)(__) PHP Tutorials and snippets: http://www.DevTek.org
3 kinds of people: those who can count & those who can't.