Multiple PHP vars in a JavaScript onclick() problem
<p>I have the following php code </p>

<pre><code>$bigImageSrc = 'images/'.$prodXML-&gt;bottles-&gt;bottle[$i]-&gt;bigImage;
$text = $prodXML-&gt;bottles-&gt;bottle[$i]-&gt;title;
$title = $prodXML-&gt;bottles-&gt;bottle[$i]-&gt;text;    
echo "&lt;a href=javascript:void(0); onClick=showProduct('$bigImageSrc', '$text', '$title');&gt;
</code></pre>

<p>but I'm getting this error:</p>

<blockquote>
  <p>syntax error<br>
  showProduct('images/image1.jpg',</p>
</blockquote>

<p>It works for just one var in the showProduct function.</p>

<p>Any ideas where I'm going wrong?</p>
