Jump to content

Question Mark appearing on page when PHP parsed


djeyewater

Recommended Posts

Sorry if this is a stupid question, but I'm a PHP Noob.

 

I am trying to use a PHP variable inside of some javascript, it works okay but a Question mark appears at the top of the page. The relevant code looks like:

 

<?php 
$path= "./Marchants_Road_-_Cuckfield_Road/";  
?>


<!-- Pano // -->
<DIV ID="Smallpano" Name="Smallpano">
<SCRIPT type="text/javascript" src="../Scripts/detectvr.js"></SCRIPT>
<SCRIPT type="text/javascript">
writecode("<?php echo $path; ?>Small.mov","<?php echo $path; ?>Small.mov","<?php echo $path; ?>SmallJava.jpg","<?php echo $path; ?>SmallFlash.swf","<?php echo $path; ?>SmallSPIV.jpg","100%","100%");</SCRIPT>
</DIV>

 

When I view source on the HTML page output, the top looks like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">?
<!-- saved from url=(0013)about:internet -->
<html><head>

All the code for the page is correct except that ? at the end of the first line.

 

What am I doing wrong?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.