Greetings Forum,
I actually posted this thread in Flash 2004 mx. I thought maybe I can get some help over here.
I have a simple button in a swf file that I am trying to get to load a php page into the browser. Simple right?? Well my button wants to open a new window and go to the actual .com website. I know I am suppose to load variables somewhere but I don’t know where. I have looked at a lot of tutorials but I can’t seem to make any sense out of them. Here is my code…
The as for my button is…
on (release) {
loadVariables("&email=$s_email","_parent",“POST”);
getURL(“jobseekeroptions.php”,0,“POST”);
}
Here is the php code that I am trying to communicate with…
<?php
include ("…/config/config.inc");
// start session and bring in session variables
session_start();
// forward to login page if the session is not valid
if(!isset($s_email))
{
header(“Location:jobseeker_menu.php”);
exit();
}
@$link = mysql_connect(SYSTEM,USERNAME,PASSWORD);
mysql_select_db(DATABASE) or die( “Unable to select database”);
$query = “Select * from booth where email=’$s_n_email’”;
$result = mysql_query($query);
if(!$result)
{
echo “Error - Could not get Job information from database.”;
mysql_close();
exit;
}
$resoption = $row[‘resoption’];
header(‘location:$resoption’);
?>
Someone please help me!!! I really need to get this thing to work.