Forum Moderators: open
<?=$_COOKIE['lastmr']?>
Will give
00000140
But when i put this into my onclick function:
<script Language="JavaScript">
function LastVal()
{
document.add.MR.value=<?=$_COOKIE['lastmr']?>;
}
</script>
called with :
<a href="#" onClick="LastVal()">last</a>
When I "click" it strips the 0's giving me:
140 instead of 00000140.
And unfortunatelly i need those zero's in there to search for the right product.
Are there any arguments i can give the function to make it not strip 0's?
Please help!
Thanx :)