Welcome to WebmasterWorld Guest from 54.159.214.27

Forum Moderators: open

Flash doesn't capture REFERER even now?

Want php to capture HTTP_REFERER

   
5:36 pm on Oct 4, 2006 (gmt 0)

10+ Year Member



Hi,

Sorry to rejuvenate an archaic thread but just wanted to know if anyone has figured this out? I'd like my movie to be able to call a PHP file, and deliver the referer URL to php.

E.g.,

Page 1 --> Page 2 SWF --> Page 3 PHP called inside SWF

I'd like Page 3 to be able to get Page 1 as the referer.

Appreciate pointers!

4:28 am on Oct 5, 2006 (gmt 0)

10+ Year Member



You can send headers using addRequestHeader() when using loadVars or loadXML. Look it up in the help. You can't set certain headers (like referer), but you can create your own for your own purposes.

4

10:10 am on Oct 6, 2006 (gmt 0)

5+ Year Member



If page_2 (that has flash on it) is a php page then $_SERVER has referer information. I don't see why you wouldn't get page_2 to communicate with page_3 at parse time on the server.

If you really want to have flash send page_3 the referer you could pass flash the $_SERVER['http_referer'] like this:

src="../media/flash/style3/flashmovie.swf?referer=<?= $_SERVER['http_referer']?>">"

then the var referer will be available at _root on frame 1 of your movie. Then you can send if to page_3

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month