Jump to content

Textarea Woes


pengu

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/172777-textarea-woes/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/172777-textarea-woes/#findComment-910664
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/172777-textarea-woes/#findComment-910672
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.