probabilmente hai il register globals su off
codice:<? require "config.php"; ?> <html> <head> <title>Example dot com - Ultimate News</title> </head> <body> <font face="Verdana" size="2"> <? $link = mysql_connect("$host", "$dbuser", "$dbpass") or die("Could not connect to database"); echo "Connected successfully adding to database... "; mysql_select_db("$dbname") or die("Could not select database"); $query = "INSERT INTO `news` (`newsid`, `title`, `story`, `user`, `date`) VALUES ('', '{$_POST['title']}', '{$_POST['story']}', '{$_POST['user']}', '{$_POST['date']}')"; $result = mysql_query($query) or die("Query failed"); echo "<a href=view.php>Click here to view your news!</a>"; ?> </font> </body> </html>

Rispondi quotando