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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get rid of "\"?? Please advice! 1

Status
Not open for further replies.

JoJoH

Programmer
Jan 29, 2003
356
US
Hi all,

I am quite new to PHP and I have a question in mind...

Well basically what's happening is I've created a customer review system. Here is how it works: I've created a form that submits to a page that would grab the form variables and insert it into a text file. Then I will have another page that would retrieve the info in the text file and display it. Now the problem is whenever someone submit anything with double quotes (For example if someone submitted the following comments:

This thing is "ABSOLUTELY WONDERFUL"!

The page that does the writing into the text file will insert the following: This thing is \" ABSOLUTELY WONDERFUL \" Instead of just This thing is "ABSOLUTELY WONDERFUL"! And as a result, the page that display that customer review will retrieve this: This thing is \" ABSOLUTELY WONDERFUL \" from the text file and display it along with the "\". Is there any way to get rid of that "\"?

Please advice.

Thanks in advance!


JoJoH

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top