syntax error, unexpected (T_IF) : <p>Parse error: syntax error, unexpected 'if' (T_IF) on line 4</p>

<p>I really don't know what is wrong with my code or why this is happening because I am new to PHP.</p>

<p>Line 4 is: if($passcheck == $mypass){</p>

<pre><code>    &lt;?php
    $mypass="DaPigeon123";
    $passcheck=$_POST["password"]
    if($passcheck == $mypass){
    echo "Welcome," .$_POST["username"]. "! You are now logged in.&lt;br/&gt;";
    {
    else
    echo "Sorry, wrong password. &lt;br/&gt;";
    ?&gt;
</code></pre>
