Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / February 2006



Tip: Looking for answers? Try searching our database.

close php script once run from Flash

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raj_Sol - 21 Feb 2006 23:24 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.