pengu Posted September 2, 2009 Share Posted September 2, 2009 Hey guys, Few questions with PHP & Forms. I've seen the answer here before but I'm unable to locate it. I believe it was fixed with either an explode or preg command. First problem is if a word like *that's* is being typed in the text area it will output as that///'s. The second drama is the dreaded line breaks. How would one output this correctly. ** Form is being emailed. ** Cheers, Pengu. Quote Link to comment https://forums.phpfreaks.com/topic/172777-textarea-woes/ Share on other sites More sharing options...
RussellReal Posted September 2, 2009 Share Posted September 2, 2009 you mean it is received already quoted.. because php has some feature as of php 4 I think it is.. that for 'security' reasons.. the text is quoted by default.. but really it is just a freaking pain on us web developers.. All you need to do is stripslashes() on the text.. and as for new lines.. most email clients will handle new lines just fine Quote Link to comment https://forums.phpfreaks.com/topic/172777-textarea-woes/#findComment-910664 Share on other sites More sharing options...
smerny Posted September 2, 2009 Share Posted September 2, 2009 ah nvm missed the "emailed" part Quote Link to comment https://forums.phpfreaks.com/topic/172777-textarea-woes/#findComment-910666 Share on other sites More sharing options...
pengu Posted September 2, 2009 Author Share Posted September 2, 2009 you mean it is received already quoted.. because php has some feature as of php 4 I think it is.. that for 'security' reasons.. the text is quoted by default.. but really it is just a freaking pain on us web developers.. All you need to do is stripslashes() on the text.. and as for new lines.. most email clients will handle new lines just fine Sorry I have no idea what you're talking about in your first paragraph, I didn't mention anything about quotations. The ' apostrophe I think it's called, has 3 slashes before it. I will try the stripslashes() command. Cheers. Quote Link to comment https://forums.phpfreaks.com/topic/172777-textarea-woes/#findComment-910672 Share on other sites More sharing options...
pengu Posted September 2, 2009 Author Share Posted September 2, 2009 Just to add, I'm thinking the problem is because I'm using the email with HTML not plain text. Quote Link to comment https://forums.phpfreaks.com/topic/172777-textarea-woes/#findComment-910691 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.