For some reason, whenever i run my script for the first time in the browser,
the static source file get parsed and produces errors....

My script have JavaScript in it, and also my script calls the
"session_start();"

Now first time the script is beeing run, i view source and see in my static
part of file:

          <td><img border="0"
src="../images/slogo.gif?PHPSESSID=a969d3d42b6277125c9830a7e09d3cc2"></td>

knowing that that previous line is a static part, why the ?PHPSESSID got
appeneded to it?

beside that, it changes my original javascript line from:

          <td><a href="../services/hosting/main.php"><img border="0"
src="../images/shared1.gif" onmouseover="JavaScript:
imgmenu1.src='../images/shared1over.gif'" onmouseout='JavaScript:
imgmenu1.src="../images/shared1.gif"' name="imgmenu1"></a></td>


to:

          <td><a
href="../services/hosting/main.php?PHPSESSID=a969d3d42b6277125c9830a7e09d3cc
2"><img border="0"
src="../images/shared1.gif?PHPSESSID=a969d3d42b6277125c9830a7e09d3cc2"
onmouseover="JavaScript: imgmenu1.src="../images/shared1over.gif""
onmouseout="JavaScript: imgmenu1.src="../images/shared1.gif""
name="imgmenu1"></a></td>


As you notice, the JavaScript statment is now erroneous because the single
quote got replaced with another double-quote.

Can any one tell me what's wrong? and how can i overcome this problem?

thanks.

-elias
http://www.eassoft.cjb.net





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to