Villan er við ” if ($submit){“ Lína 5
if ($submit) {
// process form
$db = mysql_connect(”localhost“, ”root“, ”pass“);
mysql_select_db(”mydb“,$db);
$sql = ”INSERT INTO employees (first,last,address,position) VALUES ('$first','$last','$address','$position')“;
$result = mysql_query($sql);
echo ”Thank you! Information entered.\\\\\\\\n";
} else{
// display form
X