PDA

View Full Version : PHP and emailform


Nasier
10-13-2003, 08:24 PM
There's this tiny little detail that I'd like to fix. I made an emailform in flash and used PHP for the backend. I recieve the emails and everything works fine, except for one tiny little detail. When the user gives an 'enter' in the body (to jump to the next line) on the site it jumps to the next line but when I check my email the 'enter' is totally ignored. How do I solve this?

nunomira
10-13-2003, 10:13 PM
hi,

I think it's this:
flash sends a new line to php as a \r
so you need to conver it to a \n


$something = str_replace("\r","\n", $something);