title: is it safe to use $_POST for button action?
body: <p>Is it safe to use $_POST for button action ?</p>
  
  <p>for ex.</p>
  
  <pre><code>&lt;button name="submit"&gt;Table A&lt;/button&gt;
  </code></pre>
  
  <p>php (what my code here does is, if i click the button(Table A) the <strong>table A</strong> will appear then, in default is not viewable.)</p>
  
  <pre><code>    if(isset($_POST['submit'])) {
  
          &lt;table&gt;
            code....
          &lt;/table&gt;    
  
  }
  </code></pre>
  
  <p><strong>FOR MY QUESTION</strong>: is it safe ? to the attacker ? like xss, sql injection, or something ? I want an advice, to have more safer website. (or atleast safer from attackers)</p>