using javascript function to initialize php variable
<p>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... </p>

<pre><code>    &lt;?php
    function printDiv($abc) {
        echo '&lt;div align="center" width="100%"&gt; ' . $abc . ' &lt;/div&gt;';
    }
    ?&gt;
    &lt;script type="text/javascript"&gt;
        function callPhpFunction(jsabc) {
            &lt;?php $abc ?&gt; = jsabc;
            document.write("&lt;?php printDiv($abc) ?&gt;");
        }
    &lt;/script&gt;
</code></pre>
