I have a problem inserting information into a sql database. The user needs to answer a question and submit that.
 <!DOCTYPE html>
    <html>
    <head>
    <title>Some title</title>
    </head>
    <body>
    <form action="neg.php" method="post">
    <b>Enter a title:</b><br /><input type="text" name"title" /><br />
    <input type="submit" value="I !" />
    </form>
    </body>
    </html>
The php page looks like this:
<?php
/* get all input*/
$connection = mysqli_connect("localhost","X","Y","Z") or die("Some error occurred during connection " . mysqli_error($connection));
$sql="INSERT INTO xyz (title)
VALUES
('$_POST[title]')";
if (!mysqli_query($connection,$sql))
  {
  die('Error: ' . mysqli_error($connection));
  }
echo "1 record added";
?>
Can anyone please help me out here? I'm really stuck, tried a million things, but simply do not see what went wrong. I also do not get an error, so I'm unsure what the problem is. Can anyone please help me out here?
Thanks in advance!
 
     
    