0
I need to run a if in PHP only if there is a click on the button. Not having a click the if does not execute. I imagine I will need to interact Javascript with PHP, but... I read several posts but I still can not do.
Simply put, it would be something like this:
<a href="">Clique</a>
<?php
if (Clique == true) {
Execute isso;
}else{
Não execute nada;
}
The point is, and the rest of the script? It should run when? Where is this PHP code? In the same file as the button? What is this if will you do it? Is there a question [Dit] describing all this? By the way, if it’s new here, I recommend that you do the [tour] by the site.
– Woss
Possible duplicate.
– bio
just use the onclick function
– Victor