@
When in the first swf you have the connect to the database because the user is writing his login data there you will not have these datas in the next swf which is called by LoadMovie.
The code which I have is asking for a language to be written into a textfield. After pressing a button the session starts. But there is no connect to a database.
Here is the code:
<?php
include ("flash.inc.php");
flash::drawExpire();
$result = session_start();
if ($action == "create") {
$messageArray[0] = "Session could not be started.";
$messageArray[1] = "Session has been started.";
$messageArray[2] = "Language not defined!";
if(empty($language)){
flash::echoVar("result",0);
flash::echoVar("message",$messageArray[2],TRUE);
exit();
} //~ end if
session_register("s_language");
$HTTP_SESSION_VARS["s_language"] = $language;
$s_language = $language;
flash::echoVar("result",$result);
flash::echoVar("_SNAME",session_name(),FALSE);
flash::echoVar("_SID",session_id(),FALSE);
flash::echoVar("message",$messageArray[$result],TRUE);
} else if ($action == "get") {
$messageArray["de"] = "German text.";
$messageArray["en"] = "English text.";
$messageArray[""] = "Session not aktiv!";
flash::echoVar("message",$messageArray[$HTTP_SESSION_VARS["s_language"]],TRUE);
} else if ($action == "destroy") {
$messageArray[0] = "Destroying not possible!";
$messageArray[1] = "Session be destroyed!";
$result = session_destroy();
flash::echoVar("message",$messageArray[$result],TRUE);
} else {
$messageArray[0] = "No action defined!";
flash::echoVar("result",0);
flash::echoVar("message",$messageArray[0]);
} //~ end no correct action
?>
How can I change this to get for example the variable email, written by the user and after it has been compared with the variable inside the database so that in the second swf the email already exists?