Jump to content

[SOLVED] strings and replacements


monkeytooth

Recommended Posts

Ok I have a simple form to mail myself data that is posted by my users. I have that working fine, outputs to HTML formated mail.. All is good pretty much with it and working except 2 fields.

 

2 textarea's (multiline fields).. the output on them gets broken a bit, so my question is how do I catch the string prior to output and have it check to see if enter, return, or whatever have you is keyed.. in otherwords what I want to do is if the user keys in for a line break or 2 or 3 even I want to catch the line breaks and have it put <br> to simulate the break in the email as it would if i sent it to another form field similar..

Link to comment
https://forums.phpfreaks.com/topic/122789-solved-strings-and-replacements/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.