Okay, currently I have a web-based Edit Panel for one file, and am Planning to make one for ANY file.
The problem being, when I edit it, it goes all crazy...
Unix from EA\\\\\\\\'s play server
Comments by Unix from EA\\\\\\\\'s play server: The lighthaven Justice League!
Whenever there is a ' or ", it adds a bunch of slashes :mad: :mad:
Is there a way to fix it? Here is my current code:
<?php
$adminedit = 'pics.txt';
$fp = fopen($adminedit, "r");
$text = fread($fp, filesize($adminedit));
fclose($fp);
$text = htmlspecialchars($text);
?>
<form method="post" action="savechange.php" enctype="multipart/form-data">
<textarea name="editpic" cols="100" rows="50"><?php
echo $text;
?></textarea>
<?
echo '<input type="HIDDEN" name= user value=';
echo $user;
echo '>';
echo '<input type="HIDDEN" name= pass value=';
echo $pass;
echo '>';
?>
<button name="submit" type="submit">Submit Changes</button>
</form>