Greetings Forum,
Can someone tell my how to configure the actionscript for my flash button to load a php page into the browser??
The way I have it now, when the button is clicked, it opens a new window and goes to my home page ???
Here is what I have…
on (release) {
getURL(“jobseekeroptions.php”,“post”);
}
I know I am supposed to load some variables somewhere, but where??
To BlueNar,
Thanks for your response. I put that script in, saved and published the swf file and it is still opening the .com website instead of loading the php page.
Any other suggestions ???
Is there another actionscript that would perform this task???
To Defective
Again thanks for your response. I am just not getting it!!!
I tried your suggestion and the button doesn’t even respond. I really can’t understand why when I use…
on (release) {
getURL(“jobseekeroptions.php”,“0”,“POST”);
}
The result is a new window with the actual .com website. What is going on??
I am in dire need of getting this button and code to work right. There is compensation available for anyone who will give me a hand. Just email me
OK BlueNar,
Here is my php code. Where do I load the varibles for my button actionscript??
<?php
include ("…/config/config.inc");
//include (“booth_visit.php”);
// validate data
// 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: logon.htm”);
exit();
}
// get booths from database
@$link = mysql_connect(SYSTEM,USERNAME,PASSWORD);
if(!$link)
{
echo “Database seems to be down”;
exit;
}
mysql_select_db(DATABASE) or die( “Unable to select database”);
$query = “SELECT * FROM booth where email = ‘$email’”;
$result = mysql_query($query);
if(!$result)
{
echo “Error - Could not get booth information from database.”;
mysql_close();
exit;
}
$row = mysql_fetch_array($result);
$resoption = $row[‘resoption’];
header(“location:$resoption”);
?>