Forum Moderators: coopster
How would i put the following header in a php file?
So far i have this:
header("Content-type: text/javascript");
But i don't know how i would do the rest of the tags as you see below:
<script language="javascript" type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas"
});
</script>
thanks
Instead, do not send that header, display the HTML as normal within the PHP file:
<?
$somePHP = 'Stuff';
?>
<script language="javascript" type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas"
});
</script>
<?
$morePHP = 'Code';
?>