I have a scritp which writes the data from a textarea to a .txt file.
The problem is that when I submit the file it changes, I don't know why:
That is my code, now when I (for ex.) enter today's kool, It will output today/'s kool, and some more bounch of things
now, how do i fix this?? thanks a lot
The problem is that when I submit the file it changes, I don't know why:
PHP Code:
<textarea name="content"></textarea>
~~~~
$content = trim( $_REQUEST['content'] );
echo $content; // this is just to check
~~~
fwrite($handle, $content, strlen($content));
That is my code, now when I (for ex.) enter today's kool, It will output today/'s kool, and some more bounch of things
now, how do i fix this?? thanks a lot
Comment