PHP Login System. Do not receive any values of the HTML : <p>I'm new to php and I'm trying to write a simple signup sytem. Now I have some issues.
I've tried to debbug my code, but I've no clue what I did wrong.</p>

<p>Problem: I didn't receive the values from the HTML input in PHP. When I do a @echo to the variables, I don't receive any input.</p>

<p>HTML Code of the elemenets</p>

<pre><code>&lt;input name="uid" type="text" placeholder="What's your username?" autofocus="autofocus" required="required" class="input pass"/&gt;
    &lt;input name="pwd" type="password" placeholder="Choose a password" required="required" class="input pass"/&gt;
    &lt;input name="pwd2" type="password" placeholder="Confirm password" required="required" class="input pass"/&gt;
    &lt;input name="email" type="text" placeholder="Email address" required="required" class="input pass"/&gt;
    &lt;input type="submit" name="submit" value="Sign me up!" class="inputButton" &gt;
</code></pre>

<p>Db Connection code, where I declared the $conn variable</p>

<pre><code>&lt;?php

$dbServername ="localhost";
$dbUsername ="root";
$dbPassword ="";
$dbName ="test";

$conn = (mysqli_connect($dbServername,$dbUsername,$dbPassword,$dbName));
</code></pre>

<p>PHP Code wher I'm trying to show the values of the html input</p>

<pre><code>if(isset($_POST['submit'])) 
{
    include_once 'dbc.php';


    $uid = $conn-&gt;escape_string($_POST['uid']);
    $pwd =  $conn-&gt;escape_string($_POST['pwd']);
    $pwd2 =  $conn-&gt;escape_string($_POST['pwd2']);
    $email =  $conn-&gt;escape_string($_POST['email']);
    if (mysqli_connect_errno())
    {
    echo "Failed to connect to MySQL: " . mysqli_connect_error();
    exit();
    }
    else{





    if(empty($uid) || empty($pwd) || empty($pwd2) || empty($email))
    {
        echo $uid, $pwd, $pwd2, $email;
    }
    else{}
    }
</code></pre>
