Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- PHP and Javascript help


RichtorScript - 12:33 am on May 4, 2006 (gmt 0)


Here's an easy one, or at least I think it should be.

I need to pass a php variable to a pop-up opened using javascript.

$picone1 is a pic name ramdomly selected from a mysql database, I then use $picone1 to display a thumbnail pic which is a link to a pop up page which shows a larger version of that pic.

Here's what I have on the main page;
<a href=# onclick=window.open('viewpic.php?piconel','newpage',width=350,height=350'); return false> </a>

On viewpic.php, I simply have this;
<img src=$piconel>

I'm sure it's probably a tad more complicated then that. It's not working, and any help would be much appreciated


Thread source:: http://www.webmasterworld.com/php/12728.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com