Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get rid of the / in emails 2

Status
Not open for further replies.

nat1967

Technical User
Feb 13, 2001
287
0
0
US
HI everyone,

I have a form on a website that allows the user to send comments to a pre determined email address. The problem i cant seem to get around is when the user uses quotes "" in their email.

The email comes to me formatted like:

/"text"/

I have looked at php.net and reviewed a couple of manuals I own. I know why the / is showing up but I dont know how to make it stop when sending the email.

any thoughts or suggestions?

Have A Great Day!!!, [bigglasses]

Nathan
Project Manager III
 
this of interest ? stripslashes()

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
This from the PHP online manual entry for addslashes():

The PHP directive magic_quotes_gpc is on by default, and it essentially runs addslashes() on all GET, POST, and COOKIE data.



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
HI KarveR and sleipnir214,

I just wanted to say thanks for pointing me in the right direction. I have reviewed PHP.net for the information you gave me and now I understand what was happening. I have made the changes and everything works fine.

Thanks again!

Have A Great Day!!!, [bigglasses]

Nathan
Project Manager III
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top