i'm creating a simple form which reads text from a file, and displays it in a textbox. the user can then edit it, hit the save button, and the file should be editted.
the main problem i'm having is that everywhere there is a quote, it adds a '\' infront of it. i believe the problem is with the following code.
Code: Select all
$myfile = fopen($p . ".txt","w");
fputs($myfile,$_POST['editbox']);
fclose($myfile);