including a javascript-file

A

Anonymous

Guest
First of all, 'include' is lower-case. Secondly, this is almost certainly a register_globals problem. Where is $bubblecursor coming from? If it's in the URL (e.g. script.php?bubblecursor=true) or a form with the GET method, then you need to read it via the $_GET superglobal, e.g. $_GET['bubblecursor']. Otherwise, if it's coming from a form with the POSt method, you need to use the $_POST superglobal.
 
and to include a javascript script....

recommended way is
Code:
<script src="/path/to/file.js" type="text/javascript"></script>
 
Your code seems fine (apart from the fact that you needlessly capitalize "if" and "include"). It looks like a path problem. Make sure that the path to your .js file is correct (try using a relative path instead of an absolute path).
 
Back
Top