|
Helpppppppp,
I have to use "initialize" in "body" instead of "head" of a PHP file. I inserted the following in "body":
<script language="javascript" type="text/javascript">
initialize('FrmRegister', 'lstCountry', 'lstState', 'lstCity', new Array('<?=$_SESSION['post']['lstCountry']?>'), new Array('<?=$_SESSION['post']['lstState']?>'), new Array('<?=$_SESSION['post']['lstCity']?>'));
</script>
and the page works fine. However, when I tested the page with a HTML validator for HTML 4.01 Transitional I got an error: The element "script" was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed). Insert "script" in "head".
Can you tell me what can I use instead of "script" to insert "initialize" in the "body"? I tried "body" but I got the same error.
Thx
|