\n-new line

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
murlopaz
Forum Commoner
Posts: 60
Joined: Wed Oct 11, 2006 5:02 pm
Location: Baltimore, MD, USA

\n-new line

Post by murlopaz »

1. Hi everybody. I have a problem. I am trying to retrieve some text from a form and then send it as an email.
The problem is that text area control that's on the form doesn't send the new lines character when using POST.
Does anybody have an idea how to fix this?
2. How can I get the name of the php file i am on?

Thanks!
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

1) Do you send a html mail? Then you have to convert the \n characters to <br />, see http://de2.php.net/nl2br
2) __FILE__, see http://www.php.net/language.constants.predefined
Post Reply