PDA

View Full Version : Flash & PHP


Jovan
02-06-2005, 09:08 PM
Hi guys,

I don't know if this question is stupid or something, but i need answer... :confused:
I made mail submit form with Flash MX and PHP (input fileds are: Contact person, Address, Phone, e-mail and comment). Everything works fine except comment field. This field is multiline and includes text wraps, line breaks (carriage returns). When I try to send comment variable Flash somehow deletes these line breaks and stores whole text in one row (or more, because of text wrap). What I need is to make line breaks stay intact...

Please help... Thanx in advance.

Regards,
Jovan

CyanBlue
02-07-2005, 12:45 AM
Howdy and Welcome... :)

I think you've got to use nl2br() function for the multiline textFields... ;)

andehlu
02-08-2005, 10:46 PM
I LOVE nl2br(). one question tho cyanblue, will the vars get to the PHP script out of flash keeping the line breaks intact? \n ? Ive never tried....