Dear experts,
I have a problem with session_start() and JavaScript. In IE6 (but not
Mozilla) the first time the page below loads the JavaScript doesn't
work (clicking on the graphic should write 'click' in the form entry
box). After you hit refresh it works fine. IE doesn't report any error
(reporting is turned on). It also works fine if I remove the
"session_start()". Is this an IE bug or am I doing something wrong?
Is there a fix or a work-around? Any help would be greatly
appreciated. I'm using PHP Version 4.3.8 on an Apache server (the full
"info()" can be seen here:
http://www.math.lsu.edu/~wamelen/gamerz/info.php
and the code included below can be tested here:
http://www.math.lsu.edu/~wamelen/gam...uid/druid5.php
Sincerely,
Paul van Wamelen
<?php
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
function BoardClick(){
document.GetMoveForm.elements[0].value = 'click';
}
// -->
</SCRIPT>
</HEAD>
<BODY vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff>
<IMG src="DruidBack1x6.png" onClick='BoardClick()'>
<FORM name=GetMoveForm action=Druid.php method=get>
Click or enter move <INPUT maxLength=30 size=10 name=1>
<INPUT type=submit value="View move"></FORM>
</BODY>
</HTML>