Stumped

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
Clumps
Forum Newbie
Posts: 1
Joined: Tue May 15, 2007 1:21 pm

Stumped

Post by Clumps »

Everah | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hello all, and thanks in advance...

I have a javascript ("js.js") document that passes the following code...

[syntax="javascript"]function launchPhoto(GalleryID, PhotoID) {
  win = window.open('photo.php?GalleryID=' + GalleryID + '&PhotoID=' + PhotoID,'video', 'width=570,height=570');
  win.focus();
The code is populated from a flash SWF file (GalleryID and PhotoID refer to XML snippets). The code is PASSED to a photo.php document where the browser shows the name changes to photo.php?GalleryID=12345&PhotoID=0 (for example) but the contents of photo.php (namely

Code: Select all

    <param name="movie" value="photoviewer.swf?intGalleryID=&intPhotoID=">
    <param name="quality" value="high"><param name="BGCOLOR" value="#000000">
    <embed src="photoviewer.swf?intGalleryID=&intPhotoID=" width="560" height="560" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#000000"></embed>

fail to change along with the name of the file (where 'intGalleryID=&intPhotoID' should change to 'intGalleryID=12345&intPhotoID=0 as per the name change of the file itself).

Any ideas why? I'm not sure if this is a problem with the code or what. I'm obviously inexperienced but any assistance would help.

Thanks,
"Clumps"


Everah | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Descriptive subjects

Post by feyd »

Please update the thread title to be a bit more descriptive.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
It would help us help you to see the code of this photo.php where it outputs the HTML you've posted.
Post Reply