Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- $a="hello";
- ?>
- <script>
- function echoHello(){
- alert("<?PHP hello(); ?>");
- }
- </script>
- <?PHP
- FUNCTION hello(){
- GLOBAL $a;
- ECHO $a;
- }
- ?>
- <button onclick="echoHello()">Say Hello</button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement