Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

Removing ' from mail

the mail() function

Moderators: macek, egami, gesf

Removing ' from mail

Postby sanderdolphin » Sun Jun 06, 2004 11:51 am

Apologies for the incorrect terminology throughout this post.

I've set up my mail which is working in every way I want it to - except that it places a / before (what I assume are reserved) characters such as " and '

Is there a way I can get this to email without those in it? I'm using $content = strip_tags($content); to ensure there are no tags but can't work out how to prevent the / in the emails.

Any advice appreciated.

Stephen
sanderdolphin
New php-forum User
New php-forum User
 
Posts: 19
Joined: Fri Dec 19, 2003 10:51 am

Postby Redcircle » Sun Jun 06, 2004 2:47 pm

you could use str_replace('/','',$content)

but / should not effect messages \ will thought.. you can use stripslashes() for that.
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA


Return to PHP coding => Mail

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.