ah... you mean that the </ br> things come in when I insert the text.. 😉 yeah.. maybe
This is my add.php:
<?
include("head.php");
?>
<h2>Add News</h2>
<form method="post" action="save.php">
<table>
<tr><td>Aihe:</td><td><input type="text" name="topic"></td></tr>
<tr><td>Avainsanat:</td><td><input type="text" name="keywords"</td></tr>
<tr><td>Lähde:</td><td><input type="text" name="source"></td></tr>
<tr><td>NEttiosoite:</td><td><input type="text" name="www" value="http://"></td></tr>
<tr><td valign="top">Sisältö:</td><td><textarea name="content" COLS="100" ROWS="50"></textarea>
</select></td></tr>
<tr><td><br></td><td></td></tr>
<tr><td></td><td><button type="submit">Send</button></td></tr>
</form>
<?
mysql_close($connection);
?>
here's the save.php
<?
$connection = mysql_connect('localhost', $user, $pwd) or die ("Error Trying to connect to the database..");
mysql_select_db($dbName, $connection) or die ("Either that's not a valid database or you dont have permission to access it.");
$statement ="insert into news (topic, newsText, keywords, source, sourceHttp, d) values ('$topic', '$content', '$keywords', '$source', '$www', '$date')";
if (mysql_query($statement) !=0){
print "Success";
}
else{
print "Something is seriously wrong.";
}
mysql_close($connection);
?>