Jump to content

Extract an ID passed through a variable with the link


RON_ron

Recommended Posts

I need help to write the PHP code to extract an ID passed through a variable with the link and match it to an ID on the PHP page, then pass the email address (into Flash).

 

<PARAM NAME=FlashVars VALUE="markbass=permadi&score=124560">

 

FlashVars="markbass=permadi&score=124560"

 

A sample script would be helpful.

Link to comment
Share on other sites

The purpose of doing this is my website is been linked to many of our DISTRIBUTORS. I need a system to know from which DISTRIBUTOR did the request come from. I'm developing the website in FLASH.

 

How I'm planning to do this is

 

By adding the PINK text on the HTML - This will pass a variable with the link.

 

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  codebase="http://macromedia.com/cabs/swflash.cab#version=6,0,0,0"   
  ID=flaMovie WIDTH=250 HEIGHT=250>
  <PARAM NAME=movie VALUE="flaMovie.swf">
  [color=red]<PARAM NAME=FlashVars VALUE="userName=permadi&score=80">[/color]  <PARAM NAME=quality VALUE=medium>
  <PARAM NAME=bgcolor VALUE=#99CC33>
  <EMBED src="flaMovie.swf" 
[color=red]    FlashVars="userName=permadi&score=80"[/color]
    bgcolor=#99CC33 WIDTH=250 HEIGHT=250 
    TYPE="application/x-shockwave-flash">
  </EMBED>
</OBJECT>

 

Then I need a PHP script which would extract that ID and match it to an ID on the PHP page, then pass the email address into Flash.

 

SO I'M ASKING HELP IN WRITING THE PHP WHICH INCLUDES THE LIST OF EMAIL ADDRESS.

Link to comment
Share on other sites

Still, Im completely lost. You mention a link, I see none.

 

Then I need a PHP script which would extract that ID and match it to an ID on the PHP page

 

So, you want php to scan a file for an id, then match it against another id somewhere else in the same file?

Link to comment
Share on other sites

OK. I try to explain once more in a easier way. I've developed a website in FLASH. I own a company and my distributors link my website to theirs. I want to give a commsion to the distributor based on where the user come in to my website.

 

I'm getting each Distributor to add code to their site to pass a variable with the link when they link to my site. 

 

Basically, the link on their site would include a variable in the querystring (http://www.mysite.com/targetpage.php?DistributorID=1234). Each Distirbutor ID is unique.

 

I need to write a PHP script that would extract that ID and match it to an ID on the PHP page, then pass the email address (which matches to that ID) back to my Flash website.

Link to comment
Share on other sites

You will find the DistributorID (as passed via a link) within the $_GET[] array. eg $_GET['DistributorID']

 

As for matching it to an ID on the page? We need to see what that page looks like exactly. I'm still not sure your description is correct here.

Link to comment
Share on other sites

OK. could you tell me how to write the PHP code to send a email address to a PHP file on a specific location (www.myweb.com/myphp.php).

 

No. Again, your not exactly making sense.

 

You can send a http request via either POST or GET to a php file at a specific uri, you can even send extra data along with that request. Still though, is this what your looking for?

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.