Menu
Here is the code:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“
<html lang=”EN” dir=”ltr” xmlns=”
<head>
<meta http-equiv=”content-type” content=”text/html;charset= utf8_unicode_ci”>
<title>Why???</title>
<script type=”text/javascript”>
function pass_var(a)
alert (a);
</script>
</head>
<body>
<?php
$a=”0150233″;
print <<<HERE
$a
<input type=”submit” onclick=”javascript: pass_var($a)”>
HERE;
?>
</body>
</html>
$a is “0150233”. But javascript converts it to 53403.
How can I keep value 0150233 in js (and retain string type).