javascript-php var post get
<p>That code work:</p>

<pre><code>startSlideshow(&lt;?php echo json_encode(glob("photos-animaux/*.jpg"))?&gt;);
</code></pre>

<p>that code dont : </p>

<pre><code>$.post("",{'folder':'animaux'});
startSlideshow(&lt;?php echo json_encode(glob("photos-".$_GET["folder"]."/*.jpg"))?&gt;);
</code></pre>

<p>WHY ?, what i am doing wrong ?, help !
why the stupid php fonction just dont make the string right !! ahhhh!</p>

<p>---new infos----
that line work : </p>

<pre><code>startSlideshow(&lt;?php echo json_encode(glob("photos-".$_GET["folder"]."/*.jpg")) ?&gt;);
</code></pre>

<p>because if i MANUALLY enter in the address bar ?folder=animaux...bam! work</p>

<p>so the problem shoul be there : $.get("photo-portfolio.php",{folder:"animaux"});</p>

<p>still dont know where !</p>
