Quote
<style type="text/css">
<!--
body {
background-color: #000000;
}
body,td,th {
color: #FFFFFF;
}
.style1 {
font-family: "Courier New", Courier, monospace;
color: #FF0000;
font-weight: bold;
}
-->
</style>
<h1 align="center"><span class="style1"><U>OMG NEWS BULLETIN </U></span></h1>
<FORM action="/added.php" method="POST">
<div align="center">
<table width="743" border="0">
<tr>
<td width="182">Title of News Bulletin: </td>
<td width="545" colspan="2"><div align="center">
<input type="TEXT" name="title">
</div></td>
</tr>
<tr>
<td><br>
News:</td>
<td colspan="2"><div align="center">
<textarea name="news" cols="50" rows="10"></textarea>
</div></td>
</tr>
<tr>
<td>Posted by: </td>
<td colspan="2"><div align="center">
<input type="text" name="posted" />
</div></td>
</tr>
<tr>
<td><br></td>
<td><p align="center">
</p>
<p align="center">
<input type="reset" name="Reset" value="Reset" />
</p>
<p align="center"> </p></td>
<td><div align="center">
<input type="SUBMIT" name="submit" value="Submit" />
</div>
</td>
</tr>
</table>
</div>
<p align="center">
<label></label>
<br>
</p>
</FORM>
Quote
<?php
$da = getdate();
$date= Date('d/m/y');
$news = ("
<tr>
<td><b><div align=\"center\">$date</div></b></td>
<td><p>$news</p>
<p align=\"right\"><b>$posted</b></p>
</td>
</tr>
</font>");
$file = fopen("news.php", "r");
$read = fread($file, filesize("news.php"));
fclose($file);
$blah = fopen("news.php", "w"); //Leave alone look and learn, only edit if you know php
$news=stripslashes($news);
fwrite($blah, "$news $read");
fclose ($blah);
print "<meta http-equiv=\"refresh\" content=\"1;http://davidshouse.awardspace.com/news.php/\">"; //edit path to where the news.php file falls
?>
Quote
<tr>
<td><b><div align="center">21/03/06</div></b></td>
<td><p>This is a test bulletin</p>
<p align="right"><b>David</b></p>
</td>
</tr>
</font> <table border="3">
<style type="text/css">
<!--
body {
background-color: #000000;
}
body,td,th {
color: #FFFFFF;
}
.style1 {
font-family: "Courier New", Courier, monospace;
color: #FF0000;
font-weight: bold;
}
-->
</style>
</table>
Basically, it all goes "Wrong" in news.php.
When the form submits, the data it's submitting is going ABOVE the <table> tag insted of Below it. If it went below it, it would show in a table.
So I guess what i am asking is how can I make the code it submits go underneath a certain tag in my source.
I don't want the form to submit another table every time, as you can see; I'd like it to continue the already there table.
Thanks for whatever help you give me.
David.
