PHP + MySql
<Form action = "" method = "Post">
<Table class = "Opt">
<Tr>
<TH colspan = "2"> News Title: </Th>
</Tr>
<Tr>
<TD> <input type = "text" class = "TXT" style = "width: 500px" name = "title"/> </TD>
<TD> </TD>
</Tr>
<Tr>
<TH colspan = "2"> News: </Th>
</Tr>
<Tr>
<TD> <textarea class = "area" style = "width: 600px; Height: 100px" name = "content"> </textarea> </TD>
<TD valign = "TOP"> </TD>
</Tr>
</Table>
<Div class = "Opt"> <input type = "Submit" name = "Submit" value = "publish" class = "BTN" tabindex = "3"/> </ div>
</Form>
<? PHP
$ Conn = mysql_connect ("localhost", "root", "Database Password ");
Mysql_select_db ("newstest ");
$ Exec = "insert into newstable (newstitle, newscontent) values ('". $ _ post [title]. "','". $ _ post [content]. "')";
Mysql_query ("set Character Set gb2312 ");
$ Result = mysql_query ($ Exec );
Echo "<font color = Red size = 12px> News added! </Font> ";
?>