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 / August 2005



Tip: Looking for answers? Try searching our database.

How to Post data to DB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lab - 30 Aug 2005 00:23 GMT
It's not a problem to read data from MySQL db using PHP and XML to view it
in Flash,
but how to get the data from Flash and send it to php file that will store
in the database?

Previously I used to work only with HTML / PHP / MySQL, but now I've no idea
how to make the same form submition thing in Flash..

Thanks,
lab
Wilson - 31 Aug 2005 19:27 GMT
Simple,

Flash:

on (release){
    my_var_1_in_flash = "Value1";
                     my_var_2_in_flash = _root.my_var2;
                     .......
    loadVariablesNum
("http://www.myserver/pastePhp/file_in_my_server.php","","POST");
}

PHP (file_in_my_server.php):

    $my_var1_local_php  =  $_POST[my_var_1_in_flash];
    $my_var2_local_php  =  $_POST[my_var_2_in_flash ];

$conect_database(..... )

$Sql = "INSERT INTO table_Db
('".$my_var1_local_php."','".$my_var2_local_php.'")";

--------------------
Ok?

Att

Wilson Francisco Eugenio
Brazil
 
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.