title: using conditional with $_POST
body: <p>I have a one textbox. It name is example.</p>
  
  <pre><code>&lt;input type="text" name="example"/&gt;
  </code></pre>
  
  <p>I want to check, any data is coming from example or not.
  I tried use code as below:</p>
  
  <pre><code>&lt;?php
  if(empty($_POST["example"]))
  {
        echo "You need to enter any text to example box.";
  }
  ?&gt;
  </code></pre>
  
  <p>But this code is printing,when I enter the page is first.
  I want to see printed data, only when click submit.</p>