title: Can't use function return value
body: <p>I'm new to PHP and developing a login form. Please find below the code I used. When I tried it gave me the following error:</p>
  
  <blockquote>
    <p>Fatal error: Can't use function return value in write context in
    C:\xampp\htdocs\forsiteSystem\login.php on line 3</p>
  </blockquote>
  
  <p>Please help me to fix the issue.</p>
  
  <p>Source code for <code>thems/login.html</code>:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;&lt;/title&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;form action=".\login.php" method="get"&gt;
          Name: &lt;input type="text" name="name"&gt;&lt;br&gt;
          E-mail: &lt;input type="text" name="email"&gt;&lt;br&gt;
                  &lt;input type="submit"  id="Submit_button"&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Source code for <code>index.php</code>:</p>
  
  <pre><code>&lt;?php
          // venushka thisara dharmasiri
  
          require 'config.php';
          require 'thems\login.html';
  
   ?&gt;
  </code></pre>
  
  <p>Source code for <code>login.php</code>:</p>
  
  <pre><code>&lt;?php
  
    if(isset($_POST("Submit_button"))==true)  
        print("Submit button pressed");
    else
        print("submit button sorry");
  
  ?&gt;
  </code></pre>
  
  <p>Source code for <code>config.php</code>:</p>
  
  <pre><code>&lt;?php
  
  $dbUser="root";
  $dbPassword="";
  $dbName="forsitelogin";
  $dbHost="localHost";
  
  $dbConnection= mysql_connect($dbHost, $dbUser, $dbPassword);
  
  if($dbConnection)
  {
      mysql_select_db($dbName);
      //print("Sucessfully connected to database");
  }
  else
      die("&lt;strong&gt;Cound not connect to database &lt;/strong&gt; ");
  
  ?&gt;
  </code></pre>