Is it possible to activate and deactivate an if from a button? what I need is relatively easy... although I can't get it... well let's get to the topic what I want is simply that when I press a button it shows the content of an if any suggestion??
<button type="button" name="button"></button>
@if()
<table>
<tr>
<td>contenido1</td><td>contenido2</td>
</tr>
</table>
@endif
I leave you a small example with PHP :