Hello,
i need to pass some variables or value to javascript from php script.
well all i need to pass to value to javascript that is with in same
php file the two values r in php i need to pass it to javascript from
there to ext page the following code make clear
here how can i call that javascript from php code.
Thanks
VM
i need to pass some variables or value to javascript from php script.
well all i need to pass to value to javascript that is with in same
php file the two values r in php i need to pass it to javascript from
there to ext page the following code make clear
Code:
<?php
$ip = "192.168.1.5";
$key = "xxxx";
//javascript that takes two value and post to next frame
<script language="JavaScript">
function load(ip,key)
{
parent.rtop.location.href ='updata.php';
//alert("the update loaded");
parent.right.location.href ='show.php?ips='+ip+':'+key;
//return true;
}
</script>
Thanks
VM
Comment