I want post the entered users email address in my DB, but there comes no errors and nothing post to my MySQL DB.
HTML
<form action="post.php" method="post">
<input id="email" name="email" type="email" class="hasHelp validateEmpty " required="required" value="" autocomplete="off" placeholder="E-Mail-Adresse" aria-describedby="emailErrorMessage">
<button class="button actionContinue scTrack:unifiedlogin-login-submit" type="submit" id="submit" name="submit" value="submit" pa-marked="1">Next</button></form>
POST.php
<?php
include('db_connect.php');
if(isset($_REQUEST['submit']))
{
$SQL = "INSERT INTO email (email) VALUES ($email)";
$result = mysql_query($SQL);
}
?>
db_connect.php
<?php
$mysqli = new mysqli("localhost", "username", "passwort", "database");
?>
DB:
Database: databasename
Table:email
email varchar(50)
Why its dont post any results to my DB?