Groups | Blog | Home
all groups > flash data integration > february 2006 >

flash data integration : close php script once run from Flash


Raj_Sol
2/21/2006 11:24:54 PM
Hi,

Anyones help on this would be much appreciated.

I have a php script as follows:

<?php
$userScore = strip_tags(trim($_POST));
$wrongQuestions = strip_tags(trim($_POST));

include("connect.php");

$query1 = "INSERT INTO num_test1_useranswers (Questions_Wrong, Score)
VALUES ('$wrongQuestions', '$userScore')";


$result = mysqli_query($connection,$query1)
or die ("Error");
?>

All it basically does is send two variables from flash which are then inserted
into an SQL table.
Within flash, this code calls the script:

on (release) {
getURL("http://localhost/Disso/num_test1.php", 0, "POST");
}

When the button is 'released', the script runs fine and the record is inserted
into the correct SQL table, however is there a way of closing the browser
window that opens when the php script is run?

Any tips are welcome.

Thanx

Raj S
Motion Maker
2/22/2006 5:19:37 PM
Do not use getURL.

Learn to use LoadVars or XML classes.


--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
Hi,

Anyones help on this would be much appreciated.

I have a php script as follows:

<?php
$userScore = strip_tags(trim($_POST));
$wrongQuestions = strip_tags(trim($_POST));

include("connect.php");

$query1 = "INSERT INTO num_test1_useranswers (Questions_Wrong, Score)
VALUES ('$wrongQuestions', '$userScore')";


$result = mysqli_query($connection,$query1)
or die ("Error");
?>

All it basically does is send two variables from flash which are then
inserted
into an SQL table.
Within flash, this code calls the script:

on (release) {
getURL("http://localhost/Disso/num_test1.php", 0, "POST");
}

When the button is 'released', the script runs fine and the record is
inserted
into the correct SQL table, however is there a way of closing the browser
window that opens when the php script is run?

Any tips are welcome.

Thanx

Raj S

AddThis Social Bookmark Button