![]() |
#1 |
Registered User
Join Date: Apr 2013
Location: Sydney
Posts: 127
|
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. |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Importance of Php Development for Web Development | tech.biztech | Programming General | 35 | 11-22-2019 12:37 AM |
PHP introduction | stevepatton | PHP / mySQL | 48 | 06-17-2019 02:02 AM |
how to php variable value assign as java script | noahwilson | Programming General | 0 | 05-09-2013 04:55 AM |
Variable in PHP lanuage | alen12345 | Programming General | 1 | 05-21-2012 06:11 AM |
Are you aware of the fact that PHP programming is the most widely used one? | johnrichards774 | PHP / mySQL | 3 | 02-07-2012 05:41 AM |