Is it possible to activate and deactivate an if from a button? what I need is relatively easy .. although I do not get it ... well let's go to the topic what I want is simply that when I press a button I show the contents of an if any suggestion ??
<button type="button" name="button"></button>
@if()
<table>
<tr>
<td>contenido1</td><td>contenido2</td>
</tr>
</table>
@endif