it should be like this way :
function mdp()
{
var str = "<?php echo 'coucou';?>";
alert(str);
}
2
solved Why PHP in script don’t work
it should be like this way :
function mdp()
{
var str = "<?php echo 'coucou';?>";
alert(str);
}
2
solved Why PHP in script don’t work