title: Notice: Use of undefined constant success - assumed 'success'
body: <p>Anyone able to assist on fixing this one annoying error been trying for like 30minutes.</p>
  
  <pre><code>&lt;?php
  if(isset($_POST['statusBtn']))
  {
      $username = htmlspecialchars($_POST['address']);
      strtolower($username);
      if(empty($username))
      {
          echo '&lt;center&gt;&lt;div class="alert alert-icon alert-danger alert-dismissible fade in col-md-7" role="alert"&gt;&lt;button type="button" class="close" data-dismiss="alert" aria-label="Close"&gt;
  &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;&lt;i class="mdi mdi-check-all"&gt;&lt;/i&gt;Fill in all fields&lt;/div&gt;&lt;/center&gt;';
      } else if($username == "" || $username == ""){
          echo '&lt;center&gt;&lt;div class="alert alert-icon alert-danger alert-dismissible fade in col-md-7" role="alert"&gt;&lt;button type="button" class="close" data-dismiss="alert" aria-label="Close"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;&lt;i class="mdi mdi-check-all"&gt;&lt;/i&gt;Domain Whitelisted&lt;/div&gt;&lt;/center&gt;';
      } else {
          $geo = @file_get_contents("http://ip-api.com/json/{$username}");
          $json_a = json_decode($geo, true);
          $proxyid = $json_a['status'];
          if($proxyid == success)
          {
              echo '&lt;center&gt;&lt;div class="alert alert-icon alert-success alert-dismissible fade in col-md-7" role="alert"&gt;&lt;button type="button" class="close" data-dismiss="alert" aria-label="Close"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;&lt;i class="mdi mdi-check-all"&gt;&lt;/i&gt;'.htmlspecialchars($username).' is Online!&lt;/div&gt;&lt;/center&gt;';
          } else {
              echo '&lt;center&gt;&lt;div class="alert alert-icon alert-danger alert-dismissible fade in col-md-7" role="alert"&gt;&lt;button type="button" class="close" data-dismiss="alert" aria-label="Close"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;&lt;i class="mdi mdi-check-all"&gt;&lt;/i&gt;'.htmlspecialchars($username).' is Offline!&lt;/div&gt;&lt;/center&gt;';
          }
      }
  }
  ?&gt;
  </code></pre>
  
  <p>When I submit for example google.com in form it echo's the result along with error </p>
  
  <blockquote>
    <p>Notice: Use of undefined constant success - assumed 'success'</p>
  </blockquote>