Editing a txt file with php<

liunx

Guest
i'm trying to edit a txt file with html code with php.
i'm echoing the content of the file into a textarea and on submit i'm writing the stuff in the textarea into the txt file again. that worked fine until i tried to make tables and such where you have to use "...

this:

<table width="100%" border="0" cellspacing="0" cellpadding="0">

became this:

<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">

when i edited it, and colors and stuff where all messed up :( does anyone know whats causing this?

btw all ' became got a \ too so i cant use those instead of "use stripslashes() on the string variable that hold all the text

echo stripslashes($var);thank you very much nice php person
 
Back
Top