Sending variables to php to Flash Builder

Hi guys,.

I made a form that, once sent to a Mysql server adds a table to a database.

Here is the code I use in Flash Builder:

...

"" < mx:HTTPService id = "srv" url ="http://mysite.com/addTeam.php" method = "POST">

< mx:request >

< format > {teamName.text} < / formatting >

< City > {city.text} < / City >

< / mx:request >

< / mx:HTTPService >

...

" < mx:Form x ="25"y ="10">

" < mx:FormHeading label ="Add team"/ > "

" < mx:FormItem label ="team name">

" < s:TextInput id ="format"/ > "

< / mx:FormItem >

" < mx:FormItem label ="City">

" < s:TextInput id ="City"/ > "

< / mx:FormItem >

< mx:FormItem >

" < s:Button label ="Add"click ="srv.send ()"/ >

< / mx:FormItem >

And here is my addTeam.php file:

<? PHP

$teamName = $_POST ['format'];
$city = $_POST ['city'];
$addteam = $teamName. » ". $city;
$connection = mysqli_connect ("host", "username", "password", "db") or die (mysqli_connect_error ());
mysqli_query ($connection, "CHARACTER SET utf8" ');  the additional table will be in Bulgarian language

$sql = "CREATE TABLE"$addteam"
(
FirstName varchar (20),
Name varchar (20),
Name varchar (20),
position varchar (20),
price int
)
";
mysqli_query ($connection, $sql) or die ("failed query:". "") mysqli_error ($Connection));

? >

My question is: How can I find a text to Flash Builder if her request was successful or failed (as "echo") so that the user (admin in this case) knows what is going on and not just by clicking on the Add button and having to go to phpmyadmin to see if the table has been created or not?

You stated

<>

ID = "srv" url ="http://mysite.com/addTeam.php" method = "POST" > "

Just add

result = "yourResultHandler ()" / > "

then create the function that would deal with the result.

<>

"ID ="srv"url ="http://mysite.com/addTeam.php"method ="POST"result =" yourResultHandler (event) ">

Tags: Flash Builder

Similar Questions

  • Problem passing variable from PHP to Flash

    I'm moving a single variable from PHP to Flash. However, I can't quite make it work.

    In a PHP file named data.php, I use:
    "$query = SELECT SUM (Debt) As Total OF THE debtclock;
    $result = mysql_query ($query);
    $debt = mysql_result ($result, "Total");
    Print "debttotal = $debt";

    In Flash 8 Actionscript, I use:
    loadVariables("data.php","0");

    If I understand correctly, this should make the variable available in Flash debttotal.

    Can someone tell me where I'm wrong?

    Try this:
    loadVariables ("data.php", _level0);
    The 2nd parameter specifies the target that receives variables, '0' is not a valid value for this. With _level0, variables will be found in the root timeline, so you can access it with _root.debttotal (from _level0) or _level0.debttotal (on a different level than _level0).

    Welcome,
    blemmo

  • Profiler PHP in Flash Builder 4.5

    Hey there, I use Flash Builder 4.5 for PHP Premium. I noticed on the features page, http://www.adobe.com/products/flash-builder-php/features._sl_id-contentfilter_sl_featuredi splaytypes_sl_top.html, he announces "profiling PHP". I would like to try this feature, but I can't find information on how to open a PHP profiling session. Pointers would be greatly appreciated, I do not know it is simple once you know how.

    Thank you

    Hope this page helps http://files.zend.com/help/Zend-Studio/profiling.htm

  • How to protect the loading and sending variables to php?

    Hello
    Someone has some tips to make the safest flash using a php script?

    Example of variable Flash snippet:
    $yourmail = $HTTP_POST_VARS ['email'];

    I read that it is possible to recover all the variables sent with flash.
    This would mean that people could take advantage of your script php for other sites (SPAM).

    Is it possible to encrypt or protect it?

    You can protect it with encryption:

    A lot of possibilities of encryption exist in the package to as3coreLib located here:

    http://code.Google.com/p/AS3corelib/

  • Flash Builder 4.6 - Server for the remote server settings

    Hello

    IM creating a mobile application with PHP in Flash Builder 4.6 Application Server Type.

    Everything works well for localhost, so when im on the desktop debugging.

    Now, I want the export Release version, and I don't know how I should change the setting:

    Root Web

    The root URL

    Output folder

    in the Flex server Panel.

    Thank you

    This post explain and works!

    http://forums.Adobe.com/message/4095833#4095833#4095833

  • Send variables from flash AS2 to php mySQL

    Hi I have a question to adobe. So I finally created a system to connect / register with php and mysql and flash as2. That works, and here's the link:lumosityentertainment.hostei.com/PhPLoginSystem.swf

    But I have a question. How to send variables from flash as2 to my mySQL database? And then how to load their MySQL to flash as2? Also when variables get edited or changed as if I had 6 gold and then now I have 7 but how do send flash that updated data in my database? I know you use php and other things but I have examples of easy php and codes as2? I'm a beginner in php, but I know a decent amount of AS2. I searched all over google and adobe for the answer forums, but none of them really helped. I am currently working on a flash game on my site and I'm doing so that players can save as their gold, armor, weapons etc and then load them by logging into their account.  Here is my game that I currently use cookies to save the data:

    lumosityentertainment.enjin.com/playfantasydreams

    var sendLV:LoadVars = new LoadVars();

    var receiveLV:LoadVars = new LoadVars();

    receiveLV.onData = function(src:String) {}

    trace (SRC);  or be it for debugging

    }

    sendLV.somedata = somedata;

    sendLV.someotherdata = someotherdata;

    sendLV.sendAndLoad ("yourphp.php", receiveLV, "POST");

    /////////////////////////////////

    ////

    PHP

    .

    .

    $somedata = $_POST ['somedata'];

    $someotherdata = $_POST ['someotherdata'];

    write to your sql

    {if (whatever)}

    echo "success";

    } else {}

    echo "failed."

    }

    /////////////////////////////////

    PS when you use the adobe forums, please check the useful/correct, if there is.

  • Send variables from flash to PHP

    Hello world
    I have a problem when sending variables from flash to PHP
    Here is the code:

    submit.onPress = function)
    {
    c = new LoadVars ();
    c.NME = "Myname"
    c.sendAndLoad ("getVars.php", reply, 'POST');
    }

    PHP code:

    <? PHP
    $name = $_POST ['nme'];
    Print 'your name is. " $name. «. < br / > ';
    ? >

    What I'm doing wrong here.
    I get an error message saying notice: Undefined index: name in \xxx\getVars.php on line 2

    Please help me. Thanks in advance

    2 things that I notice immediately

    1. you never initialize the variable 'Reply' to your sendAndLoad.
    2. you must pass a string encoded in URL variables which is ampersand delimited. Usually the returned string would look like echo ("" & result = 1 & msg = your % 20name % 20is %20 '. ") $name. ». 3rd % 3Cbr % &");

    Your mistake is that the information is not get passed correctly. I usually use $_REQUEST communication flash-php, although this should not make a difference. I've seen people use $_REQUEST for testing purposes and will then to $_POST when finished.

  • Flash Builder 4.6 for PHP and SDK 2 questions

    I have problems with Flash Builder for PHP 4.6 and the Playbook Air SDK 2.0. It worked fine with the Air SDK 1 Playbook, but for 2.0 he moved not (error integration with Flash Builder) and when I try to update in Flash builder I get an error of missing requirements. Flash builder 4.6 works fine with the PlayBook SDK, but not the PHP version. I bought the PHP version after the end of my trial of 4.6 so I could build an app that tied in the server services and to think that both versions are the same.

    Everyone knows this and is at - it a solution?

    Thanks in advance.

    Hello

    Flash Builder for PHP 4.6 is not supported by the BlackBerry Tablet OS SDK for Adobe AIR. Sorry for the inconvenience this has caused.

    Dustin

  • Help, please! build the example of php services in flash builder 4.5

    Hi all all the noob here. I went through several tutorials and it keeps popping up.

    On most of these tutorials after clicking the new data service and selecting PHP tutorials have a link generating php sample.

    I use flash builder 4.5 for php premium and I do not have this link. This link has possibly been moved? I really need this feature, please can someone help me?

    Hi Anju

    not was not what I was looking for but found after clicking on all buttons in the user interface.

    For other users, that it is located on the tab/Data Service on the right hand side is a small triangle pointing down. Click on it and will be of connection options. Select to connect to PHP. Don't know why this isn't on the other tab.

    But thanks for the reply

  • Cannot install Flash Builder for PHP 4.6

    I have FB4.5 installed premium and purchased a license to upgrade to version 'for PHP. I downloaded the 2 files on the adobe web site (only V4.6 seems to be downloadable now) - FlashBuilderPHP_4_6_LS1.7z and FlashBuilderPHP_4_6_LS1.exe. The installation will passed specifying options, but just before he finishes it says "roll back the installation" and closes. I was hunting autour and founf PDApp.log and these are the last lines. They give me any indication as to what has bad shot, except maybe the first one here, but it keeps going for a little while after this message. I tried 3 times now with a reboot between the two, and it fails every time. It's time to download a new copy installation files or get a DVD?

    Thank you

    03/02/2012 14:11:44 [INFO] PIM - id Package BE253463-D6DD-4046-BF29-FAF2E8EADEFB is already installed

    03/02/2012 14:11:44 [INFO] PIM - deleteAppletRegInfoRecords SUCCESS.

    03/02/2012 14:11:44 [INFO] PIM - deletePackageUpgradeInfoRecords SUCCESS.

    03/02/2012 14:11:44 [INFO] PIM - deletePackageInstallationInfoRecords SUCCESS.

    03/02/2012 14:11:44 [INFO] PIM - insertPackageUpdateList SUCCESS.

    03/02/2012 14:11:44 [INFO] PIM - insertAppletRegInfoList SUCCESS.

    03/02/2012 14:11:44 [INFO] PIM - created backup file

    03/02/2012 14:11:49 [INFO] utility - the file does not exist

    03/02/2012 14:11:50 [INFO] PIM - installPackage SUCCESS to the file C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\DWA\DWA.pimx Builder.

    03/02/2012 14:11:50 [INFO] installation - finish by installing the package - C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\DWA\DWA.pimx Builder

    03/02/2012 14:11:50 [INFO] installation - start installing the package - C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\LWA\LWA.pimx Builder

    03/02/2012 14:11:50 [INFO] PIM - BEGINNING installPackage to the file C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\LWA\LWA.pimx Builder

    03/02/2012 14:11:50 [INFO] PIM - tries to access xml path: C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\LWA\LWA.pimx Builder

    03/02/2012 14:11:50 [INFO] PIM - XML is valid

    03/02/2012 14:11:50 [WARN] PIM - could not find node

    03/02/2012 14:11:50 [INFO] PIM - Package id 288AEB6F-C67B-4244-8B68-392A279BC618 is already installed

    03/02/2012 14:11:50 [INFO] PIM - deleteAppletRegInfoRecords SUCCESS.

    03/02/2012 14:11:50 [INFO] PIM - deletePackageUpgradeInfoRecords SUCCESS.

    03/02/2012 14:11:50 [INFO] PIM - deletePackageInstallationInfoRecords SUCCESS.

    03/02/2012 14:11:50 [INFO] PIM - insertPackageUpdateList SUCCESS.

    03/02/2012 14:11:50 [INFO] PIM - insertAppletRegInfoList SUCCESS.

    03/02/2012 14:11:50 [INFO] PIM - created backup file

    03/02/2012 14:11:56 [INFO] utility - the file does not exist

    03/02/2012 14:11:57 [INFO] PIM - installPackage SUCCESS to the file C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\LWA\LWA.pimx Builder.

    03/02/2012 14:11:57 [INFO] installation - finish by installing the package - C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\LWA\LWA.pimx Builder

    03/02/2012 14:11:57 [INFO] PIM - treatment... _pimCreateOrUpdateAAMInventory

    03/02/2012 14:11:57 [INFO] PIM - inventory already present on the machine...

    03/02/2012 14:11:57 [INFO] installation - TimeLog: installation of the end Lance PDApp.

    03/02/2012 14:11:57 [WARN] installation - install the unspecified Source path. Looking for payloads on the way to launch.

    03/02/2012 14:11:57 [INFO] installation - engine deployment started with the command: "C:\Program Files (x 86) \Common"-DeploymentFiles = "C:\Program Files (x 86) \Adobe\Adobe Flash Builder 4.6\silentinstall\remove.xml"-installSourcePath = "C:\Program Files (x 86) \Adobe\Adobe Flash Builder Flash Builder 4.6 4.6\WinFBInstaller\Adobe".

    03/02/2012-14:11:58 [FATAL] installation - end Adobe. Exit code: 33

    03/02/2012 14:11:58 [INFO] PIM - PIMSqlite closeDB status 0

    03/02/2012 14:11:58 [INFO] FREE PIM - PIM Instance...


    I worked it out in the end - I had to uninstall FB4.5 and restart the computer. Why install so couldn't say instead of just crashing? I found this, by the way, trying to run the Setup program created in \adobe\adobe flash Configurator 4.6 of c:\program files (x 86). What I was told at least I had to uninstall a previous version, if she was even then evasive on which we

  • Pre-Noob question, Flash Builder for PHP and MySQL... can pack and write?

    So I am COMPLETELY new to Flash Builder and Flex universe, but I'm familiar with PHP / MySQL. One thing that has not been specifically stated to me, is what Flash Builder with (Zend) PHP with the MySQL database when it is packaged and exported? If he did enter the database and is able to execute the query PHP application to the MySQL database within the application?

    I'm confused if she needs to go on the web and communicate with the server. Can he communicate with a LOCAL database?

    Thank you!!

    No Flash Builder package not the final result with data base and

    webserver. To run your application locally you would need to have a

    PHP and Mysql Web server running on your local computer.

    Maybe watch using wamp http://www.wampserver.com

    http://www.imonggo.com/> on your local computer.

    Otherwise I suggest you will probably need to create your program in

    Java who can speak directly to local databases without the need for php.

  • Removal of Flash Builder 4.5 installing Flash Builder 4.5 for PHP

    There is a very serious mistake with the Flash Builder 4.5 to install PHP (of http://static.zend.com/topics/Flash-Builder-for-PHP-4.5.0-Release-Notes.txt ):

    If Flash Builder 4.5 (not PHP) is already installed on the machine, and the 
      product (Flash Builder for PHP 4.5) is then installed in a different location, 
      the user gets the "FB is installed" dialog.
      After clicking OK, the installation rolls back and removes both Flash Builder
      and Flash Builder for PHP.

    My questions:

    Can Flash Builder 4.5 for PHP be installed in the same location without deleting Flash Builder 4.5? If so, please define 'location '.

    Is there a work around for installing the two flavors of Flash Builder 4.5 and avoiding the issue of the above deletion?

    Can be a single version of do-it-all of Flash Builder 4.5 install that combines the features of these two flavors of the SDK and Flash Builder 4.5 product?

    Flash Builder 4.5 for PHP includes the exact version of Flash Builder 4.5. We do not allow facilities side by side of Flash Builder 4.5 and Flash Builder 4.5 for PHP, you need to uninstall Flash Builder 4.5 before installing Flash Builder 4.5 for PHP. The error message you see is that we have not detected FB 4.5 earlier in the installation process, but after you close the dialog box you should just be able to run the FBPHP installation program once again without a problem.

    Hope that makes sense!
    -Heidi

  • Flash Builder stops send me errors of compilation or warnings

    Hello

    I've been using Flex / Flash Builder for Flex2 and I have always had this problem.  At some point in a project of ACEs, my project just falls down and ceases to send me errors.  Then I have to get my errors when publishing in the Flash IDE, and of course, I'd rather have them in FB before hand.

    I would say that this happens in 80% of my projects HAVE, and the only way to fix it is to delete the project and start a new one with the same scripts.  Clean has no effect.  Is there a hidden file, can I delete when this product maybe something quicker than to start a new project?

    Thanks for any help.

    P.S. I'm on a MAC

    > Maybe it's NEVER worked.

    Yes, it has never worked. Flash Builder will process a file, unless it is used (directly or indirectly) by an Application, Module or Runtime CSS file.

    > Carelessly written 'sdfdsfdsfdsf' somewhere in my class should give me SOMETHING.

    Is that it is used.

  • 4.7 Flash builder 4.5 Flash Builder upgrade problem (key is not valid)

    Hello

    We (the company) buy Adobe products now more than 6-7 years. We bought the Flash builder 4.5 premium and premium Flash builder 4.5 for volume PHP license. Now flash builder 4.7 should be complementary upgrade for us. But when we are using the trial version of Flash builder 4.7 and addition of serial number (serial number of Flash builder 4.5), it is simply not working and showing an error "the key is not valid.

    I chat with Adobe customer care 4 different people, they find themselves saying that we transfer you volume license Department and then chat on sale. No message chat more, I checked over an hour and still no message.

    So I called, it took 15 minutes to communicate with the service the customer. I chose the option 'upgrade' from the menu of the phone and then connected with a guy. After listening full case he passed my call to the Executive of license Volume and of the Executive of license volume transferred to another guy and the other guy to some person capacit¨¦s redirect. So in total 4 guys. The last guy (specialized) called Rohit.

    Rohit guy asked me, I buy a customer support program (some product on $2.nn.00)? I said no, we purchased volume licenses for Flash builder 4.5 premium (subject to $4000.00 *). He said, sorry Sir I can't help you in this area, but I can provide you with an e-mail address and you can report your concern here. I already spent my 1.5 hour in this conversation. I said okie. He gave me a case number and told me that he will send an email stating that the e-mail address in my application I have to unplug the phone.

    I never get this email address.

    Can someone suggest me what to do next. Is my file number: 209-788-274.

    My email is: [email protected]

    Thank you

    Amitabh Arya

    @Amitabh: I understand that volume license team has reached out and helped solve the problem here, but please let me know if you have any questions outstanding.

  • help with 4.6 adobe flash Builder

    Hi, I need help here...

    My flash builder 4.6 has this little nice feature where it will automatically highlight all the variable/function of the same name when you click on it, and there will be a small indication of the place of the variable/function highlighted on the side.

    However, now, my flash builder he no longer put, someone knows how to reverse / function of it?

    This is what currently my adobe flash builder look like

    I think that it is helping solve your problem)

    http://jwopitz.WordPress.com/2008/02/22/Flex-Builder-3-annoyance-code-highlighting-how-do-you-turn-t...

Maybe you are looking for