I have a small snippet of code, just below.
After the user clicks on a div whose ID is (click) this code will be executed. I have a PHP code that will run inside the javascript code block. I want to pass to the PHP JavaScript variable (Value) in the method parameter $ status-> checkUserType (), getting $ status-> checkUserType (value). It's possible?
$('#click').click(function () {
var valor='exemplo';
var recebePHP= "<?php
$status= new Usuario_Control_Grupo();
$status->verificarTipoUsuario();
if($status==true) {
echo 'existe';
}else{echo 'inexistente';}
?>";
});