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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
imroue
Forum Newbie
Posts: 6
Joined: Fri Oct 18, 2002 11:24 pm

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

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Post Reply