How to pass a PHP string as JS function parameter? : <p>I have this PHP code who send an URL as argument to a JS function :</p>

<pre><code>&lt;?php
$url="www.google.com";
echo '&lt;input type="submit" name="btnfone" onclick="window.open('.$url.')" class="btn-style2" value="Viewmap"/&gt;';
?&gt;
</code></pre>

<p>When I test it, nothing append.
But if I change the URL with an integer</p>

<pre><code>$url=1234;
</code></pre>

<p>Then the argument is interpreted.</p>

<p>What's the solution ?</p>
