0
Embedding php inside javascript.
Is this the best way to do it? <script> Alert ( <? Php Echo "hello"; ?> ) </script>
2 Respostas
+ 1
The best way to know is to test whether the code works. I would guess not : )
+ 1
Depending on the style you would love to go with.. But it feels bad and not clean that way.. Atleast if you try create a php file and use href to source out php that would help code userbillity and maintainance of the code when you are able to check the bugs where they pop up from.