Jump to content

Tricky variable issue


trickyone

Recommended Posts

Hi,

 

I need to know if php can handle passing variables to another php file without having to go to that page.

 

The issue is, i have a flash player using a playlist which should be rendered in another file called playlist.php.

 

The php file having the embedded player is dynamic and uses IDs like lets say:

 

channel.php?cid=24

 

my playlist.php needs to be aware of this "cid" variable so that it can render the appropriate playlist.

 

When i use the file flashvar as playlist.php?cid=[var.channel_id] and try to collect it with GET method in the playlist.php, it returns a playlist with undefined items.

 

I think this is because playlist.php is inactive when myurl/channel?cid=24 is loaded. I need to post this channel id to playlist.php onload without being redirected.

 

Is this possible?

 

Appreciate any idea, thanks

Link to comment
Share on other sites

Isn't there a simple solution cause if i can pass this variable to the playlist.php everything will be working ok.

 

I tried a hidden form and used a simple javascript onload submit method. This caused the correct playlist to be rendered but i've been redirected to that rendered xml.

 

I know it can be done with ajax but i do not understand ajax at all.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.