samedi 21 février 2015

JS and PHP variable don't show good

If this was in asks, sorry for that, but I want to speed help, thanks!


Do you have suggestions for result this ? Because when I do this it show last $name, it doesn't work.


JavaScript:



var name = 'Test';
if(name === 'Test'){
<?php $name = "Test"; ?>
} else {
<?php $name = "Error"; ?>
}

Aucun commentaire:

Enregistrer un commentaire