homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

Flash doesn't capture REFERER even now?
Want php to capture HTTP_REFERER

10+ Year Member

Msg#: 3108456 posted 5:36 pm on Oct 4, 2006 (gmt 0)


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.


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!



10+ Year Member

Msg#: 3108456 posted 4:28 am on Oct 5, 2006 (gmt 0)

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.



5+ Year Member

Msg#: 3108456 posted 10:10 am on Oct 6, 2006 (gmt 0)

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved