zah wrote:but where would I use stripslashes in that code?
From the looks of it, you should add:
if (get_magic_quotes_gpc()) {
$content = stripslashes($content);
}
after:
$content = $_POST['contents8'];
By the way, instead of this:
$file = fopen("users/".$user."about.php", "w");
fwrite($file, $content);
fclose($file);
you can write:
file_put_contents("users/".$user."about.php", $content);
and instead of this:
$file = "users/".$user."about.php";
$open = fopen($file, "r");
$size = filesize($file);
$count = fread($open, $size);
you can write:
$count = file_get_contents("users/".$user."about.php");