Page 1 of 1
\ Problem...I host a site called converser, http://converser.hostei.com, and when a user chats and puts a " or a ', there is a backslash output. I use PHP. I know of a software called PHPBB, and it doesn't have the backslash problem. How do you do it?
Re: \ Problem...i did not clearly understand what are you saying i have checked its working AND YOU can convert back slash \ to forward slash from php coding str_replace('\', '/' $variable);
Re: \ Problem...I tested the site and couldn't create a chat with quotes. Are you, perhaps, using SQL? If so this excerpt from the tutorial might help:
SQL statements with quotes or backslash
If you try to insert text that contains the characters single quote ('), double quote (") or backslash (\), the record may not be inserted into the database. The solution is to add backslashes before characters that need to be quoted in database queries.
This can be done with the function addslashes this way:
$strText = "Is your name O'Reilly?";
$strText = addslashes($strText);
Re: \ Problem...I am not using SQL. I am just writing to an html file that displays your chats.
Re: \ Problem...use double backslash \\ for single back slash \ appearance.
Page 1 of 1