Re: Inline PHP in HTML
for future readers, just to let you know that PHP is a server-side language. It cannot be activated from within an HTML document, it only runs when someone accesses a page, and is used to create dynamic contents on the page to send to the user. therefore, by calling the php function above, the code within the php function was executed and the <script>...</script> was added to the page before being sent to the user.
|