I am using a php plugin to insert php in my code.
I have a form and I want to make it disappears once it is submitted, but even the most simple condition I am trying to make is not working (he always prints the header):
[insert_php]
echo $_REQUEST['code'];
if ($_REQUEST['code'] == 'aba'){
[/insert_php]
<h2>HEADER</h2>
[insert_php]
}
[/insert_php]
The php is working normally because if I change it a little it prints what I want:
[insert_php]
echo $_REQUEST['code'];
if ($_REQUEST['code'] == 'aba'){
echo 'example phrase'
}
[/insert_php]
There is anything I am missing ?