" Can't use function return value in write context in line 36 " error in PHP
<p>I was coding in PHP and this weird error pops out.</p>

<pre><code>if(isset($_GET["failauth"])){ ?&gt;
    &lt;div&gt;Sorry, your user name or password is not correct. Please re-enter. &lt;/div&gt;
    &lt;form id="loginform" action="login.php" method="post"&gt;
&lt;?php } 
else if(isset($_GET("usernotexist"))){ ?&gt;
    &lt;div&gt;Sorry, the username is not found&lt;/div&gt;
    &lt;form id="signupform" action="login.php?signup=true" method="get"&gt;
&lt;?php }     
else { ?&gt;
    &lt;form id="loginform" action="login.php" method="post"&gt;
&lt;?php } ?&gt;
        &lt;div&gt;&lt;input name="name" type="text" size="8" autofocus="autofocus" pattern="/^.{3,8}$/" /&gt; &lt;strong&gt;User Name&lt;/strong&gt;&lt;/div&gt;
        &lt;div&gt;&lt;input name="password" type="password" size="8" pattern="/^[0-9].{4,10}[^a-zA-Z0-9]$/" /&gt; &lt;strong&gt;Password&lt;/strong&gt;&lt;/div&gt;
        &lt;div&gt;&lt;input type="submit" value="Log in" /&gt;&lt;/div&gt;
    &lt;/form&gt;
</code></pre>

<p>Line 36 refers to the "else if" statement. I am curious why it pasts the first one but did not pass the else if part? Is it has something to do with the syntax cause I have never used else if statement before...</p>
