Page 1 of 1

How to pass a variable using $_get to get the value later

Posted: Fri Oct 18, 2002 11:24 pm
by imroue
I need to pass a variable using $_get (or anything).
The variable is actually a path such as "/path/pics"

this is what i have

Code: Select all

$picsFolderFile = "/path/pics"; 

<a name='myPic' onClick=goToSlideShow('<?php echo $picsFolderFile ?>'); > 
          TESTIN </a>


Code: Select all

function goToSlideShow(var1) 
&#123; 
   eval("window.open('myhello.php?albumPath=<?php echo "$var1"; ?>','','fullscreen=1,toolbar=1,scrollbars=1, resizable=1')");&#125;

When i do this i get unterminated string constant???

Any ideas?

Posted: Sat Oct 19, 2002 4:49 am
by volka