hi i want to initialize php variable in javascript function and than call the php function with php initialized variable. Please help me for solving this problem...
<?php
function printDiv($abc) {
echo '<div align="center" width="100%"> ' . $abc . ' </div>';
}
?>
<script type="text/javascript">
function callPhpFunction(jsabc) {
<?php $abc ?> = jsabc;
document.write("<?php printDiv($abc) ?>");
}
</script>