Why does not the following code enter? Someone experienced can tell me the code below does not show error yet does not insert in the bank.
<form action="index.php" method="post">
addcurso:<input name="nome1" type="text">
<input name="botao1" type="submit" value="Enviar" /><br />
addinstituição:<input name="nome2" type="text">
<input name="botao2" type="submit" value="Enviar" /><br />
<?php
if (!empty($_POST['nome1']))
$nome = $_POST['nome1'];
{
include "conecta_banco.inc";
$sql = "INSERT INTO cursos (cur_id, cur_name) Values ('$nome')";
$resultado = mysqli_query ($link,$sql);
echo "inserida";
mysqli_close($link);
}
?>