Solved

Flash 8 session to php

Posted on 2006-11-02
1
212 Views
Last Modified: 2012-05-05
URGENT
within my flash object i have buttons to change the language which is used for the site

how do i get my button to alter the php's current session variable $session['lang'];

Thanks in advance
0
Comment
Question by:Robinsonx6
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
ch2 earned 500 total points
ID: 17857333
To pass the session to flash 8, i'd use FlashVars:

            <param name="FlashVars" value="lang=$session['lang']">
            <embed FlashVars="lang=$session['lang']"</embed>

From here in Flash 8 you have set the variable _root.lang

To pass it to php use the next script in your button:

getURL('yourfile.php','_SELF','GET');

From here in php you have $_GET['lang']

in your php write something like this;

$session['lang'] = isset($_GET['lang']) ? $_GET['lang'] : $session['lang'];
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question