title: How to hide an html element with php if a button is pressed?
body: <p>I would like to hide a simple div, if someone click a button. The 'details' var holds an id from db.</p>
  
  <pre><code>&lt;div class="greetings" &lt;?php if(isset($_GET['details'])) {echo " style='display: none'"; } ?&gt;
    &lt;p&gt; some text &lt;/p&gt;
  &lt;div&gt;
  </code></pre>
  
  <p>But id doesn't work. I appreciate any suggestions :)</p>