I know this has been asked before, but I'm sorry I couldn't find an example that exactly fit this particular script I need.
The first part is done, but the second part is where I'm stuck.
I want the user to see the wallpapers through a popup window which already has the windows widths set (by javascript, and done.)
But also I want that popup window to be a single file (view_wallpaper.php) and the contents of this file changes according to the variable within its URL.
So....
<a href="javascript:;" onClick="openPopWindow('view_wallpaper.php?file=aika02',800,600)">Aika</a>
would popup a window at 800x600 width that showed a picture of the second Aika wallpaper inside it. ?file=aika03 would show the third Aika wallpaper.
But I'm confused as to what I'm supposed to put inside my view_wallpaper.php file. I thought about:
$path = $_SERVER['PHP_SELF'];
if($path == "/aw/aika/index.php?file=aika01") {
echo "";
}
elseif($path == "/aw/aika/index.php?file=aika02") {
echo "";
}
But that doesn't sound right. 🙁 Any ideas?