Posts turning -> ' <- into -> /' <-
Posted: Fri Oct 28, 2005 1:06 am
ok i have a very simple code to write an html form to a text file. If i use a single quote
-> ' <-
in a text box, it will come back to me as -> /' <- .
I'm thinking it is something to do with the server, because i have tested it on another server and it works fine.
This is my code for retreiving the post.
Here is the php settings on the server i am having problems with.
http://www.billchesney.com/phpinfo.php
Just seems wierd to me that it would do this. Anyone have a clue as to why?
-> ' <-
in a text box, it will come back to me as -> /' <- .
I'm thinking it is something to do with the server, because i have tested it on another server and it works fine.
This is my code for retreiving the post.
Code: Select all
$d = Date("m.d.y");
$title = $_POST['title'];
$text = $_POST['text'];
$file = "textfile.txt";
$fp = fopen($file, "w");
fwrite($fp, $d . "|" . $title . "|" . $text );
fclose($fp);http://www.billchesney.com/phpinfo.php
Just seems wierd to me that it would do this. Anyone have a clue as to why?