TEST
<style type="text/css">
.text_area{background-color:#0000FF; color:#FFFFFF; border-style:ridge; font-family:Verdana, Arial, Helvetica, sans-serif; height:500px; width:800px}
.updated_text {font-family:Verdana, Arial, Helvetica, sans-serif; color:#339900; font-weight: bold; }
</style>
<?php
$message = "";
if ( isset($_POST['notes']) )
{
$message = "<br />Updated<br /><br />";
// Backup existing file
	// Copy original file to backup location
	$upd_file="include/song_choices/".$person.".php" // can replace this with $include_file
	$kiedate = date("Y_m_d__H_i_s");
	copy($upd_file, "include/song_choices/backup/".$kiedate.".php"); 

	// Open backup list and create hyperlink to new backup entry
	$fp = fopen('include/song_choices/backup/backup_list.php', "a+");
	fwrite($fp, '<a href="'.$kiedate.'.php">'.$kiedate.'.php</a>');
	fwrite($fp, "<br />\r");
	fclose($fp);

	$file = fopen($upd_file,'w+');

	if ( !fwrite ($file, stripslashes($_POST['notes'])) )
	{
		?>Failed<?php
	}
	
	fclose($file);
}

$file = fopen($upd_file,'r');
$content = fread($file, filesize($upd_file) );


?>
<?
$message = test666; //temp
?>
<fieldset><legend>Notepad</legend>
<span class="updated_text"><? echo $message; ?></span>
<form enctype="application/x-www-form-urlencoded" method="post">
<textarea name="notes" id="notes" class="text_area"><?php echo $content; ?></textarea><br />
<input type="submit" value="Save" />
</form>
</fieldset>
</body>