PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to put in a backslash everytime I recieve text from a form that has apostraphies. I recieve this text that goes into the database and then my webpage displays the text. The webpage that displays the text uses javascript and the javascript will only accept apostrophies if it is backslashed. I have used the following