Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.