I'm working on a Login System for my website, however when I insert all the information (User, password, Email) Into the databse for the sigm-up function, it is setting all the variables to 0. I know that it is not an issue with passing variables, because I have echo'd the Username and Password and they are at what they are meant to be. The code for my sign-up page is as follows:
<?php
include '../includes/conn.php';
include 'salt.php';
if($_POST['signup']){
    $user = $_POST['user'];
    $pass = $_POST['pass'];
    $cpass = $_POST['cpass'];
    $email = $_POST['email'];
        if($pass == $cpass){
            $hpass = create_hash($pass);
            $query = $conn->prepare("INSERT INTO Users (Name, Password, Email) VALUES (?, ?, ?)");
        $query->bind_param('sss', $user, $hpass, $email);
        $query->execute();
            if($query){
                $msg = 'Account created successfully, please check your email to verify it.';
            }else{
                $msg = 'There was an error creating your account: ' . $conn->error . ', please try again later';
            }
            //echo $user . ' ' . $pass . ' ' . $hpass . ' ' . $email;
        }else{
            $msg = 'Passwords do not match.';
        }
}
?>
<html>
    <head>
        <title>DiscFire Softworks - Login test</title>
        <link rel="stylesheet" type="text/css" href="../includes/ie-styles.css">
        <style type="text/css">
            @import url('../includes/styles.css');
        </style>
    </head>
    <body>
        <div class="body">
            <img src="../images/header.jpg" />
            <div class="navbar">
                <?php
                    $query = $conn->prepare("SELECT Name FROM pages ORDER BY ID asc");
                    $query->execute();
                    $query->bind_result($name);
                    while($query->fetch())
                    {
                        echo '<a href="/?page=' . $name . '">' . $name . '</a>';
                    }
                ?>
            </div>
            <?php
                echo '<p>' . $msg . '</p>';
            ?>
            <form method="POST" action="index.php" id="sign-up">
                <input type="hidden" name="signup" value="1"/>
                <label for="user">Username: </label>
                <input type="text" style="width: 30%; margin-left: 59px;" name="user"></textarea>
                <br />
                <label for="pass">Password: </label>
                <input type="password" style="width: 30%; margin-left: 60px;" name="pass"></textarea>
                <br />
                <label for="cpass">Confirm Password: </label>
                <input type="password" style="width: 30%; margin-left: 1px;" name="cpass"></textarea>
                <br />
                <label for="user">Email: </label>
                <input type="text" style="width: 30%; margin-left: 90px;" name="email"></textarea>
                <input type="submit" />
            </form>
        </div>
    </body>
</html>
Here is the SQL Structure, as requested by @Prix:
Thanks in advance!
