PDA

View Full Version : Keep format of form input??


gorilla1
12-12-2002, 04:53 AM
I am taking text input input from a form and then sending it out in an email. If the text is input with spacing and paragraphs, is there an easy way to produce the same spacing and paragraph formatting in the email (or am I going to have to build an editor)?

G

gorilla1
12-12-2002, 02:51 PM
To put this more simply, is there a way to retain mutiple spacing in form input? It looks like when I get the input data in php, all extraneous spaces have been eliminated... which is not too suprising, I suppose. Maybe the answer is to massage the input on the client side using javascript.

G

gorilla1
12-12-2002, 04:27 PM
Ah, jeez, all I needed was : nl2br($string)

G