Variable Load in PHP 5.0.2
Hello to all,
i have a question about the arrays $_POST and $_HTTP_POST_VARS
which one can i use in PHP v5.0.2 so that i can load variables from other applications?
I have Apache XAMPP Lite version 1.4.8 in my PC installed.
The thing is that i like to load some variables from a .swf file (Flash MX) and then save them in a databank. It doesn't work!
The MySql-skript is allright and works (i have allready double checked it). In this vesrion of apache is PHPMyAdmin 2.5.7 pl1 installed too.
Here is my PHP-MySql code:
PHP Code:
<?
//First of all the load of variables from the .swf file (is here the //problem???)
$VarA = $HTTP_POST_VARS['Var1'];
$VarB = $HTTP_POST_VARS['Var2'];
$VarC = $HTTP_POST_VARS['Var3'];
$VarD = $HTTP_POST_VARS['Var4'];
$VarE = $HTTP_POST_VARS['Var5'];
//Connect to the databank network_quiz
$conn_id = mysql_connect("localhost","root","");
$db_con = mysql_select_db("Network_Quiz",$conn_id);
//Open table and save the data into it
$data_save = "INSERT INTO Data_from_flash
VALUES('".$VarA."','".$VarB."','".$VarC."','".$Var D."','".$VarE."')";
$result = mysql_query($data_save);
//close the connection
mysql_close($db);
?>
I have this problem for long time now and in other forums noone could help...I wish i can find someone in webmasterlingo!
thank you
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|