Here is the following code: What i am trying to do is create a simple white board my team can use to turn over issue that happened during the day. But i want to be able to delete entry's if need be.
Any suggestions would be great.
<html>
<head>
<title>(ISSC) Integrated Solution Support Center</title>
<link rel="stylesheet" href="includes/issc.css" type="text/css">
<script language="javascript" src="includes/browserStyle.js"></script>
<script language="javascript" src="includes/isscMenu.js"></script>
<script language="javascript">
function newUrl(name,str)
{
window.open(str,name)
}
</script>
</head>
<body bgcolor="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" onUnload="self.name=''">
<script language="javascript" src="includes/header.js"></script>
<form action="123ioc.php" Method="POST">
<table align="center" bgcolor="#FFFFFF" cellspacing="2" cellpadding="2" border="0">
<tr>
<td>
<div align="center"><font size="+1"><b>Outage Notifications to be Sent</b></font></div>
<br>
<FONT FACE="Arial" SIZE="-1"><TEXTAREA name="update" cols="100" Rows="10" WRAP="VIRTUAL"></TEXTAREA></FONT>
<BR>
<input type="submit" name="submit" value="submit">
<select id="colorselect">
<option value="0">COLOR</option>
<option value="blue" style="color:blue">blue</option>
<option value="red" style="color:red">red</option>
<option value="green" style="color:green">green</option>
</select><P><BR><BR>
</td>
</tr>
<tr>
<td>
<?PHP
$filename = "/u01/htdocs/webstuff/temptest.txt";
$fp = fopen( $filename, 'a+');
fwrite( $fp, $HTTP_POST_VARS['update'] . "\n");
fclose( $fp);
$fp = fopen( $filename, 'r');
$test = fread( $fp, filesize ($filename));
fclose( $fp);
$test_array = explode( "\n", $test);
for ( $i=count($test_array)-1; $i>-1; $i--){
echo $test_array[$i] . "<br>";
}
?>
</td>
</tr>
</table>
<!-- END PAGE/CONTENT/TEBLE HERE -->
<script language="javascript" src="includes/footer.js"></script>