[Flash MX 2004] Anyone noe how to send a variable value from flash to a php page? I have a score’s value which I need to send it to the php page n update into the database… Thanx in advance…
codes:
score = rightAnswers;
then dunno…
[Flash MX 2004] Anyone noe how to send a variable value from flash to a php page? I have a score’s value which I need to send it to the php page n update into the database… Thanx in advance…
codes:
score = rightAnswers;
then dunno…
use geturl or loadvars
I have these codes in flash:
var c = new LoadVars();
c.score = rightAnswers;
c.send(“updateScore.php”,"_root",“POST”);
n these codes in updateScore.php:
<?php
$db = “electrical_safety”;
$link = mysql_connect(“localhost”);
mysql_select_db($db, $link);
$query = “UPDATE member SET score=’”.$HTTP_POST_VARS[‘score’]."’ WHERE emp_no=‘123’";
mysql_query($query);
mysql_close($link);
?>
Is there anything wrong with the codes? pls help mi… Thanx in advance…
Finally solve it alreadi… juz bcoz I have chosen wrong flash player… but I dun like when it will pop out the updateScore php page…
:: Copyright KIRUPA 2024 //--