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 - 22 Feb 2006 22:19 GMT
Do not use getURL.
Learn to use LoadVars or XML classes.

Signature
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
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