Hi,
I have a program with a php extension and curious as to why a piece of javascript inserted into the html portion of that program won't execute.
For example, if the file is named myfile.php and constructed as follows:
PHP Code:
<? php
...
some php code here;
...
?>
<html>
<head>
<title></title>
</head>
<body>
<!-- some html code here -->
....
<table>
<tr>
<td width="746" height="150" background="images/topbar2.gif" align="left" valign="middle"><script language=JavaScript src="datestamp.js"></script>
</td>
</tr>
</table>
</body>
</html>
The javascript won't execute. However, if I name the file myfile.html and eliminate the php code, the javascript executes.
Anyone have any idea as to why?
|