First off the other questions that have been anwered don't help me. I still have the same problem so please don't mark this as a duplicate. Also I have to add data to my database.
Code:
<html>
<head>
<title>Vanille</title>
</head>
<body>
<?php
include ("realhtmlinphpfile.php");
mysqli_connect("localhost")
or die ("Fehler");
mysqli_select_db("test34")
or die ("Verbindung nicht möglich...");
$Test1 = $_POST["Test1"];
$Test2 = $_POST["Test2"];
$Text3 = $_POST["Test3"];
$Test4 = $_POST["Test4"];
if($Test1 == "" or $Test2 == "" or $Test3 == "" or $Test4 == "") {
echo "FAIL";
} else {
$eintrag = "INSERT INTO test34
(datum, autor, newstext)
VALUES
('$test1', '$test2', '$test3', '$test4')";
}
mysql_close($verbindung);
?>
</body>
</html>