I use a basic html textarea to show the contents of the file, and let them edit it, and then save it to disk.
I've just realized that when editing an html file, that everything is ok, unless the file has a textarea tag in it. Then the editing textarea tag gets closed, and you end up not getting all of the data to save
Any way to work around this and still use simple forms?
You should really always escape your output, and this means htmlentities() when you're sending data to the client.
(Escaping doesn't actually modify data once it has been received. Rather, it preserves it.)
Hope that helps.
Chris
-- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php