hey thanx for the awesome help, but after I got to messing w/ it I hit another small problem that my lack on PHP knowledged kept me from fixing… here is my updated file i made to suit me:
<?php
$filename = 'news.txt';
$tag = 'news=';
$somecontent = $_POST['news'];
// Let's make sure the file exists and is writable first.
if (is_writable($filename)) {
if (!$handle = fopen($filename, 'w')) {
print "Cannot open file ($filename)";
exit;
}
// Write $somecontent to our opened file.
if (!fwrite($handle, $tag)) {
print "Cannot write to file ($filename)";
exit;
}
// print "news=$tag";
fclose($handle);
if (!$handle = fopen($filename, 'a')) {
print "Cannot open file ($filename)";
exit;
}
// Write $somecontent to our opened file.
if (!fwrite($handle, $somecontent)) {
print "Cannot write to file ($filename)";
exit;
print "news=$somecontent";
fclose($handle);
}
print "news=$somecontent";
} else {
print "news=The file $filename is not writable";
}
?>
my prob is that if i enter something into my text box that has an apostrophe of quotation PHP automatically adds the backslash for the obvious reasons… but this messes me up when I try to use my HTML tags or just apostrophe’s in my lil example thing at www.jayhayes.no-ip.com/Jay/crap/thingy.html thanx again guys