> It's extremely important as to where you put the function within your > script.
Understood, and as I said before, I'm fairly new to PHP, so I'm bound to make the boneheaded mistakes. But I did try and solve it myself before begging for help :) Basically, the user enteres some text into a form, posted to a script that catches the data and appends their name and text to the end of a file. Then, on another function on another page, I'm reading that line in and regurgitating it onto a page to generate a list of the last 20 posters and their comment. $myLine = fgets($myFile,255); print("<b>$myLine</b> \n"); That's it. I figured between those two lines would be something like $myLine = (stripslashes($myLine)); Which I tried, in several variations depending on which page I was looking at for help. I also tried using strtr instead. Neither of those would remove the slashes before the line was printed to the page. I even tried using a new variable name, as in $fauxText = (stripslashes($myLine)); in case PHP had some kind of quirk about variables tweaking themselves. The file that's being read is plain text, btw. So if you want to try and duplicate, just read from a text file. But, like I said, using stripslashes *before* writing to the file fixes it regardless. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php