Formatting in Text Area

Formatting in Text Area

am 01.02.2008 14:07:17 von pvanbuskirk

I have a "customer description" text area field on my form which feeds =
through php to FMP, and spits out a confirmation page and email. The =
issue I am having is this ... as the customer types, the text wraps. =
Many put their own hard returns and spaces in to organize their =
description. It seems I can't get it to do both the wrap and show the =
actual formatting entered. If I format the field as physical wrap, the =
lines run off the page on the confirmation/printout. If I format it as =
virtual, then the hard returns, etc get lost. I have also tried using =

 on the confirmation page and email and that doesn't work either.

Hmmm... scratching head!

Trish
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patricia Van Buskirk
Florida State University, Office of Telecommunications
644 W. Call Street
Tallahassee, FL=A0 32306-1120
(850) 644-9247
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Formatting in Text Area

am 01.02.2008 14:21:03 von Evert Lammerts

VanBuskirk, Patricia wrote:
> I have a "customer description" text area field on my form which feeds through php to FMP,
What's FMP? Is that what links this email to the db-list?
> and spits out a confirmation page and email. The issue I am having is this ... as the customer types, the text wraps. Many put their own hard returns and spaces in to organize their description. It seems I can't get it to do both the wrap and show the actual formatting entered. If I format the field as physical wrap, the lines run off the page on the confirmation/printout. If I format it as virtual, then the hard returns, etc get lost. I have also tried using

 on the confirmation page and email and that doesn't work either.
>
Line wrapping in a text area is a property of the text area, not of the
text, as opposite to line breaks and hard returns. This is why you won't
find line break characters at the place the text used to wrap in the
text area.

What you can do of course is to add a div (or whatever container you
feel like) of the same width / height as the text area to the
confirmation page and replace \l\r with br 's.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Formatting in Text Area

am 01.02.2008 16:07:45 von Bastien Koert

--_0d8ece77-346c-4839-8d3a-681fbf0e4861_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


$text =3D nl2br($text);
=20
=20
bastien
> Date: Fri, 1 Feb 2008 08:07:17 -0500> From: pvanbuskirk@otc.fsu.edu> To: =
php-db@lists.php.net> Subject: [PHP-DB] Formatting in Text Area> > I have a=
"customer description" text area field on my form which feeds through php =
to FMP, and spits out a confirmation page and email. The issue I am having =
is this ... as the customer types, the text wraps. Many put their own hard =
returns and spaces in to organize their description. It seems I can't get i=
t to do both the wrap and show the actual formatting entered. If I format t=
he field as physical wrap, the lines run off the page on the confirmation/p=
rintout. If I format it as virtual, then the hard returns, etc get lost. I =
have also tried using

 on the confirmation page and email and that doe=
sn't work either.> > Hmmm... scratching head!> > Trish> ~~~~~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~> Patricia Van Buskirk> Florida State University, Off=
ice of Telecommunications> 644 W. Call Street> Tallahassee, FL 32306-1120>=
(850) 644-9247> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~> > -- > PHP Data=
base Mailing List (http://www.php.net/)> To unsubscribe, visit: http://www.=
php.net/unsub.php>=20
____________________________________________________________ _____


--_0d8ece77-346c-4839-8d3a-681fbf0e4861_--