the error i am getting in the html file
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: [url]http://localhost/testhtml/test.php
The test.php code is
<?php
Header(“content-type: application/x-javascript”);
echo “document.write(‘Hello World I am php code called from HTML file:’);”;
CLOSE WINDOW;
?>
The test.html code is
“<script language=”JavaScript” type=”text/javascript” src=”
HELLO TESTING
i have enclosed external javascript call within single quote so that it gets displayed here
hello testing is within h1 tags of html
Can anyone help me in resolving this. I am new to php