PDA

View Full Version : Flash Form Problem


electricmainline
05-26-2006, 10:49 AM
hi

I have a Flash form (to send e-cards - with PHP) this all works great, only I have a small problem with the "message" field...

When the user enters line breaks, these are ignored by the form

Does anyone know a way to maintain line breaks in Flash form fields?

I will be forever in your debt :)

The site in question is:

http://delta-sanctuary.com

Try out the E-cards thing... Add line breaks, see what I mean

;)

electricmainline
05-26-2006, 12:11 PM
Solved this by using

$var = nl2br($var);

in my PHP handling script