I am have the code below writing to a file. What i would like to do is have it only put <hr> in between each entry and not every time i hit the return in the text box.
any suggestions - NEWBIE
<table align="center" bgcolor="#FFFFFF" cellspacing="2" cellpadding="2" border="0">
<tr>
<td>
<div align="left"><font size="-1"><b>TEST-Ground</b></font></div>
<FONT FACE="Arial" SIZE="-1"><TEXTAREA name="update" cols="30" Rows="3" WRAP="VIRTUAL"></TEXTAREA></FONT>
<input type="submit" name="submit" value="submit">
<P>
</td>
</tr>
<tr>
<td>
<?PHP
$filename = "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] . "<hr><br>";
}
?>