Open bidjan opened 7 years ago
PHP doesn't behave in that way, the script is only handled once by the server. Calling a function after the page has been loaded will give no results...
If you're looking for "action -> action" you must rely only on JavaScript, though if you're going for a "action -> call page -> action" I recommend you do a if($_POST[]){echo i('play);}
to output the desired code.
Also
return
sets a value for the function and closes it, but the PHP will not know what to do with it, you must use a echo or give it to a variable.
Also <?=
will be unrecognizable by the PHP (I think, it depends on the properties set for PHP), you should always use <?php
for compatibility.
Hi Creptor:
php function fails to show a fontawesome feature.
Bob Ghodsi
http://pastebin.com/WacUzLd6