How can i insert this javascript code to a php block? I want to run this javascript in a php block.
<script src="http://www.example.com/index.php?section=serve&id=1&output=js</script>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It should be like this:
<script src="http://www.example.com/index.php?section=serve&id=1&output=js" language="javascript" type="text/javascript"></script>It doesn’t matter you are working in php or anything else. The fact is whenever the browser sees this tag, it will load the script file from the
"src"url and executes everything inside the file. So put this tag whenever you wanna load the script in your html document.Hope it helps
Cheers