Fester Bestertester
am 27.08.2007 23:39:59 von Fester Bestertester
Hello all,
Our Systems Team is creating a form that will enable users to submit an
application,which includes an essay.
The problem: When the user submits the essay through the text form
field, the result we see is one solid block of text with no breaks. We
are trying to avoid depending on the student to add
for each paragraph.
What coding is required to translate the keystroke "Enter" as
, so
the output will contain paragraph breaks. Of course, the code must be
508 compatible.
Thanks for your help.
Re: Fester Bestertester
am 27.08.2007 23:54:16 von Ivan Marsh
On Mon, 27 Aug 2007 14:39:59 -0700, Fester Bestertester wrote:
> Hello all,
>
> Our Systems Team is creating a form that will enable users to submit an
> application,which includes an essay.
>
> The problem: When the user submits the essay through the text form
> field, the result we see is one solid block of text with no breaks. We
> are trying to avoid depending on the student to add
for each paragraph.
>
> What coding is required to translate the keystroke "Enter" as
, so
> the output will contain paragraph breaks. Of course, the code must be
> 508 compatible.
>
> Thanks for your help.
nl2br is what I use when working with text areas... Seems to maintain the
formatting pretty well.
--
I told you this was going to happen.
Re: Fester Bestertester
am 28.08.2007 02:49:04 von Bucky Kaufman
Fester Bestertester wrote:
> Hello all,
>
> Our Systems Team is creating a form that will enable users to submit an
> application,which includes an essay.
>
> The problem: When the user submits the essay through the text form
> field, the result we see is one solid block of text with no breaks. We
> are trying to avoid depending on the student to add
for each paragraph.
>
> What coding is required to translate the keystroke "Enter" as
, so
> the output will contain paragraph breaks. Of course, the code must be
> 508 compatible.
>
> Thanks for your help.
str_repl()