Why does PHP throw quotes into my Javascript functions when I try to start a session? I want to get rid of the quotes. When I load the page, I get JavaScript errors because the quotes don't belong in the code (they are not in my original code). I have cookies enabled on my IE 5.5. The quotes only appear when I start a session using IE 5.5. When I refresh IE 5.5, the quotes go away. The quote problem never occurs with Netscape 4.73. So far, I haven't been able to find anyone with an answer to this question.
Below is what I see when I select View Source in IE 5.5 after the first page load. Notice the quotes in the functions. Why are they there on the initial page load and then go away after page refresh/reload?
1
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x="a)&&x.oSrc;i++)" x.src="x.oSrc;
"
}
function MM_preloadImages() { //v3.0
var d="document;" if(d.images){ if(!d.MM_p) d.MM_p="new" Array();
var i,j="d.MM_p.length,a=MM_preloadImages.arguments;" for(i="0;" i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src="a;}}
"
}
function MM_findObj(n, d) { //v3.0
var p,i,x; if(!d) d="document;" if((p="n.indexOf(""?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" onLoad="MM_preloadImages('../wtaimages/bandson.gif','../../wtaimages/bandson.gif','../../wtaimages/djson.gif','../../wtaimages/classon.gif','../../wtaimages/specon.gif','../../wtaimages/videon.gif','../../wtaimages/conton.gif','../wtaimages/homeon.gif','../wtaimages/djson.gif')">
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" align="center" width="640">
<tr>
<td width="60"><a href="../index.htm?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image16','','../wtaimages/homeon.gif',1)"><img name="Image16" border="0" src="../wtaimages/homeoff.gif?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c"></a></td>
<td width="70"><a href="../bands/index.htm?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','../wtaimages/bandson.gif',1)"><img name="Image10" border="0" src="../wtaimages/bandsoff.gif?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c"></a></td>
<td width="30"><a href="../djs/index.htm?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','../wtaimages/djson.gif',1)"><img name="Image14" border="0" src="../wtaimages/djsoff.gif?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c" width="60" height="25"></a></td>
<td width="110"><a href="../classical/index.htm?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','../wtaimages/classon.gif',1)"><img name="Image9" border="0" src="../wtaimages/classoff.gif?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c"></a></td>
<td width="115"><a href="../specialty/index.htm?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','../wtaimages/specon.gif',1)"><img name="Image8" border="0" src="../wtaimages/specoff.gif?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c"></a></td>
<td width="115"><a href="../video/index.htm?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','../wtaimages/videon.gif',1)"><img name="Image12" border="0" src="../wtaimages/videooff.gif?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c"></a></td>
<td width="191"><a href="index.htm?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','../wtaimages/conton.gif',1)"><img name="Image13" border="0" src="../wtaimages/conton.gif?PHPSESSID=7485ab84e70ff5e7855f0a41d446c21c" width="100" height="25"></a></td>
</tr>
</table>
</div>
</body>