<form action="main.php" method="POST">
    <input type="email" name="email" placeholder="Enter your email">
    <img type="image" id="send" src="bs.png" alt="Submit Form"/>
    <button type="sumbit">Submit</button>
</form>
<?php
$con = 
mysqli_connect("mysql.hostinger.co.uk",
"something","something","something");
$email = $_POST['email'];
$sql = "INSERT INTO emails (email) 
VALUES ('$email')";
$run = mysqli_query($conn, $sql);
header("Location: result.htm");    
(three different databases, and it just doesn't get inserted into the table..) I've been trying to fix it for three hours, if not more. Maybe I'm just an idiot, but I don't see what is wrong.
-table name is emails
-there are 2 rows : email varchar(255) and id which is auto incremented
 
     
     
     
     
    