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] "Raj_Sol" <webforumsuser@macromedia.com> wrote in message
news:dtg7g6$bhr$1@forums.macromedia.com...
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