Is this an old script that you are using on a newer install of PHP?
The newer version of PHP don't automatically convert GET and POST variables into $name variables. The newer versions leave the variables inside wrapper arrays $POST and $GET. Why don't you try this:
<?php
mysql_select_db("gastbok") or die (mysql_error());
{
$sql = "INSERT INTO information SET " .
"namn = '" . $_POST[namn] . "'," .
"hotmail = '" . $_POST[hotmail] . "', " .
"ovrigakommentarer = '" $_POST[ovrigt] . "', " .
"datum = CURDATE()";
}
mysql_query($sql) or die (mysql_error());
?>
And it looks like bernouli was right and you original post didn't include the $ infront of ovrigt, so I thought it was just text you added to each record. Anyway in the future you should cut and paste your code directly instead of re-typing it. It'll prevent typos when posting that will delay finding the problems.