<form>
<font face="Arial" size="2" color="#000000">Subject:</font><br><input type=text name=subject1><p>
<font face="Arial" size="2" color="#000000">News Message:</font><br><textarea name=text1 cols=70 rows=10></textarea><br>
<input type="submit" name="btn" value="Submit News" onClick="<?php submit_news(); ?>">
</form>
<?php
function submit_news(){
$file = fopen('../news_posts.htm', 'a');
fwrite($file, "<p><font face=\"Verdana, Arial\" size=2><b> $subject1 </b></font></p>\n");
fwrite($file, "<p><font face=\"Verdana, Arial\" size=2> $text1 <br></font></p><hr width=80% size=1 color=Yellow>\n");
fclose($file);
}
?>
it simply font write the subject and text in the news_posts.htm file, but the font code does write it self in the file, why!?!?!?