Use a PHP variable inside a jquery click()?
<p>I have this, </p>

<pre><code>    $(document).ready(function(){

        $('#link').click(function(){
            var user_login = &lt;?php $base_url; ?&gt;;
            window.location = user_login + '/login';
        });

    });
</code></pre>

<p>note that <code>$base_url</code> is global variable. This works in FF but not on Chrome and IE. Thanks.</p>
