Flex $_POST does not

OK, so I'm working on an application that allows users to connect, when they connected it redirects to another page. The page that they are redirected to must however know their ID card, which I suppose can be done safely through the post OFFICE or the SESSION, I prefer the POST.  I have this code so far:

Flex/AS3:

<fx:Script>
          <![CDATA[
               import flash.net.navigateToURL;
               
               import mx.controls.Text;
               import mx.rpc.events.ResultEvent;
               
               private var loginID:String;
               
               private function checkLogin(event:ResultEvent):void
               {
                    loginID = event.result.loginsuccess.toString();
                    if(event.result.loginsuccess != "no")
                    {
                         var data:Object = new Object();
                         data.id = loginID;
                         var request:URLRequest = new URLRequest("http://myurl.com/startPage.php");
                         request.contentType = "text";
                         request.data = data;
                         request.method = URLRequestMethod.POST;
                         
                         navigateToURL(request, "_self");
                    }
                    if(event.result.loginsuccess == "no")     
                         navigateToURL(new URLRequest("http://mybox.dyndns-web.com/Petty/incorrectLogin.php"), "_self");
               }          
               private function register(evt:ResultEvent):void
               {
                    if(evt.result.regsuccess == "yes")
                         navigateToURL(new URLRequest("http://mybox.dyndns-web.com/Petty/registerSuccess.php"), "_self");
                    if(evt.result.regsuccess == "no")
                         navigateToURL(new URLRequest("http://mybox.dyndns-web.com/Petty/registerFail.php"), "_self");
               }
          ]]>
     </fx:Script>

PHP - I want to just display the ID at the moment:

<?php     

echo $_POST["id"];

?>

But at the time the user arrives on the PHP page, they see an error:

Notice: Undefined index: id in C:\xampp\htdocs\startPage.php on line 3

Where I'm going wrong? Please help, I need this problem as soon as POSSIBLE!

Try this

var url:URLRequest = new URLRequest("http://myurl.com/startPage.php");
var uv:URLVariables = new URLVariables();
url.method = "POST";
uv.id = loginID;
url.data = uv;
navigateToURL(url,"_self");

Ref:

http://help.Adobe.com/en_US/Flex/using/WS2db454920e96a9e51e63e3d11c0bf626ae-7FE8.html#WS2d b454920e96a9e51e63e3d11c0bf69084-7ea7

Tags: Flex

Similar Questions

  • Flash Player update - now Flex debugger does not

    When I went on the kuler site - asked me to update the Flash Player plug in. Seemed harmless request. However, now the debugger for Flex IDE does not work. Kuler is a good tool, but it will work without affecting other facilities.

    Thank you!

    The debug window has been removed. Thank you for your patience. If you still - refresh your cache and everything should be good.

    Tim Strickland
    Chief developer kuler

  • ORA-20001 FLEX-ID DOES NOT EXIST

    Hi Experts,

    Please experience this problem when you run create api Grade for HCM of Oracle EBS.

    When I run this script below for business group (1759 University of Vision or Vision Corporation 202) data is transferred to the per_grades and per_grade_definitions tables

    But when I run this same script pointing to a group of companies (TEST BG 7891) we created by us - even it gives ORA-20001 FLEX-ID DO NOT EXIST error code

    I have a strong feeling that the creation of our group of companies and the setting up of the rank of Flexfield has a problem, but I can ' t trace the fault, am not an expert EBS

    Please can you please advice if mistaken!

    Thank you

    Kwesi

    SCRIPT BELOW:

    Procedure Create_Grade

    is

    l_Validate Boolean: = FALSE;

    l_Business_Group_id Number (15.2);

    l_Date_From Date;

    l_Sequence Number (15.2);

    l_Grade_id Number (15.2);

    l_Object_Version_Number Number (15.2);

    l_Grade_Definition_id Number (15.2);

    l_Name Varchar2 (100);

    l_OVN Number (15.2): = 1;

    I have several;

    Begin

    For Grad In (Select * from chr_Grades where FULL-TIME IN l_OVN) loop

    Begin

    Apps.hr_grade_api. () Create_Grade

    p_Validate = > l_Validate,

    p_Business_Group_id = > 7891,

    p_Date_From = > to_Date(sysdate,'DD-MM-YYYY'),

    p_Sequence = > 11,

    p_Grade_id = > l_Grade_id,

    p_Object_Version_Number = > l_Object_Version_Number,

    p_Grade_Definition_id = > l_Grade_Definition_id,

    p_Name = > l_Name,.

    p_segment1 = > Grad.Grade_id,

    p_segment2 = > Grad.Grade_Name,

    p_segment3 = > Grad.Grade_Description

    );

    Update chr_Grades Set FULL-TIME = 2

    where Grade_id = Grad.Grade_id;

    End;

    End of loop;

    Commit;

    End Create_Grade;

    Well, I found the solution to my problem and is simply create the segment you want to use in your flexfield without VALUESET ALL IN PASSING.

  • Flex app does not work when moved from the original location

    I'm doing a gallery of images in flex. It works when I run it in Flex Builder perfectly fine. Files html and swf works perfectly well open in any browser too, but ONLY when these files and all related files are open to the default location where the application has been generated in bin-debug folder. When I export a generation to another folder, the swf file loads but no other information from the display of the xml file. I tried to set all paths reference files (that is, the xml language) in the flex application to the absolute exact location on the server, and it did not work when I downloaded it on the server.

    I tried several approaches from scratch and they all arrive at the same question. I work with a teaching for Flex Builder License, I'm not sure if they jip you on those and ruin the compiled swf.

    Help, please! I'm losing my mind on that. I think it has to do with something else, in addition to the code because it works fine when I click 'Run', but if someone thinks it is helps for the zip code let me know.

    Often this is because you must add the - use-network = true compiler option in FlexBuilder menu bar:

    Project - Properties - Flex Compiler - additional compiler arguments:

    Add - use-network = true, and then recompile and post back to the server, should work fine.

    Note: If you create a "Release" version and move elsewhere on your local computer, you may need to add - use-network = true, and then recompile the application to access local resources outside the Flex Builder environment.

    If this post answers your question or assistance, please mark it as such.

  • Flex application does not run

    We have downloaded the beta of flex 3 for purposes of assessment. The sample application files were placed on the hosting server. . The sample application has a drop down which should get the data from the database. The URL works for some systems, but not all. When I chose the example of application of some jobs, I could see the drop down populated from the database, but other stations work, the drop down menu is not filled.

    Is there than any requirement of flex 3 application to run? That is to say, database connectivity wise.

    Take a look at the example in the link here http://www.adobe.com/devnet/flex/quickstart/httpservice/

    It defines a faultHandler which then shows an error message alert.

    Thank you
    Gerard

  • RegEx in my Flex application does not have a URL.

    Here's my regex:

    ^(?#Protocol) ((HT) TP(s?) \:\/\/|~\/|\/){1} ((?))) Address)(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) #IP | (? #Subdomains) (([-\w]+\.) + (? #TopLevel Domains))([a-z]+))(?#Port) (:[\d]{1,5})? (\/\S*)*$

    It allows this URL, but I will not allow this URL:

    http://10.10.10.10.comasdf

    Can someone help me to understand where it is bad?

    Maybe I misunderstood what you mean by "ban", but it seems to work here:

    String.search using (pattern), it returns-1 for http://10.10.10.10.comasdf and 0 for http://10.10.10.10/comasdf

  • Selector list component does not


    Flex and AS3 have two different configurations. You can swap the non Visual class, but you cannot use their inconstant objects display without use a workaround and find a good ground. I think that this is the problem that you run in. qnx classes were compiled with the AIR sdk not flex. theres a good luck if you try to use the QNX display objects in flex, they will fail just as you saw that a failure. also you found that Flex you does not use the addChild() method as in strict as3. the equivalent is the addElement() method.

    Here is a blog post about the work around. Keep in mind that the swc file is old and that it contains no hardware update sdk. but he's going to explain a few things:

    http://Renaun.com/blog/2010/12/using-MXML-with-QNX-UI-components-for-the-PlayBook/

    you will need to use a work-around as described in the link or use strictly flex (mxml) display objects type in your flex projects. If you want to make the best use of the qnx display components will be strictly using as3 in your project. hope that sheds some light. Good luck!

  • Flex 15 fan does not

    I just bought a refurbished Lenovo taking Flex 15 and it does not appear that the fan is running. I transferred some pictures on the HARD drive and it got extremely hot, but the fan never came. I read in another post that update the BIOS might help, but the Flex 15 driver/support download page does not load.

    http://support.Lenovo.com/us/en/products/laptops-and-netbooks/Flex-series/IdeaPad-Flex-15-notebook

    I get this message:

    The document you requested is not available. You may have entered an incorrect URL or connect with credentials allowed (for Lenovo field Servicers and/or Call Center Agents only) to display the page.

    If you want to ask for more information, please submit an immediate feedback by clicking on [+]. Please indicate the subject of the document and your e-mail address for a response.

    Can you please send me a link to the BIOS update file or instruct me on how to test the fan.

    Thank you

    -Nolan

    In fact, I got the fan works for someone who cares. There was a slight clicking sound coming from the it. (click, click, click on...) I turned the laptop on the side (running) for about 30 seconds and started the fan turning. Not sure if something he obstructs or if dust is causing, but it works now. I bought a new fan of ebay, just in case it stops working again. I cross my fingers.

  • Flex Builder 4.5 Premium license does not not for automation - nothing else to try?

    So I get the message when I try to record/perform a test as the "license does not exist.  Replays are only allowed with the limited trial version. "I have a license key valid for Flash Builder 4.5 premium edition.  I read many forums on this subject, but none of them helped me.  I compile my project using Flash Builder 4.5, 4.5, and a script Ant calling mxmlc.  I changed my flex - config.xml to include 'flexbuilder4', 'flexbuilder45' and my serial number given with or without hyphens (and other combinations).  I do not have a license.properties file.  I don't know what I can do.  I already reinstalled Flash Builder 4.5.  I'm now trying Flash Builder 6 with the same results.

    DaVinci coder, I would recommend you report your request in the forum installation and activation of Flash Builder.

  • TextArea auto resizing does not work from flex 4.6

    Hello

    before flex 4.6 on air mobile for android, if the height is not specified in a s:TextArea, auto sizing textArea, since flex 4.6 does not work.

    Thank you.

    Try switching it back on the TextAreaSkin instead of the StageTextAreaSkin.   StageText allows you to get a native text input, but there are limits to the way he plays with the rest of the display list.

  • addChild does not work in flex...

    Hey,.

    When I create a display object then do: addChild (display_object) in the < fx:script > section a mxml file, adobe air showed an error message:

    Error: addChild() is not available in this category. Instead, use addElement(), or change the skin, if you have a.

    And I tried to use addElement and I get this:

    Implicit coercion of a value of type flash.display:Shape to an unrelated type mx.core:IVisualElement.

    Any ideas?

    Thank you

    Chris

    It is not that it does not work in Flex 4 +.  It does not work in classes that implement IVisualElementContainer.  You can only add an IVisualElements to an IVisualElementContainer.  This is similar to how you might only add IUIComponents containers in Flex 3.x.

    UIComponent is an IVisualObject, so if you want to do things the way you should have them in Flex 3 to add a shape, you can wrap in a UIComponent.  However, Flex 4 offers some pretty cool improvements, if you use the spark (e.g. Rect or Ellipse) primitives.  If she can put them all in a DisplayObjectContainer, it will be, which helps the CPU usage.  See http://help.adobe.com/en_US/flex/using/WSda78ed3a750d6b8fee1b36612357de97a3-8000.html for more details.

    HTH;

    Amy

  • Locales for Spanish does not work in flex plugin

    I use the parameter following the compiler flex with Flex builder 3 and it works very well in local Spanish support.

    -local = en_US, es_US

    But the same setting does not work in eclipse installed with plugin flex4 running on flex SDK 3.5. I'm unable to build the project with this setting. If I remove es) WE then, it works very well.

    Here's my setting of the compiler

    -local = en_US, es_US-allow-source-path-to overlap = true - source-path = locale / {local}

    I've never used Eclipse for flex development, but yes it sounds like you are configuring the sdk ok.

    It fails to build, but gives no error, very weird

  • Upgrade to Flex 4, Halo theme, embedded police does not work for the Label of the spark

    I am upgrading an application in Flex 4 to Flex 3.5 using the Halo theme.  If I get a spark in my application the spark label label does not make the text using the font I set in my CSS.  My MX labels make it very well.  Here is a sample application that replicates to my question.  Thus,.

    Compile and run using spark theme.  The two labels make the text with the correct font.

    Compile and run using Halo theme.  Only the MX label makes the text with the correct font.

    Is it not possible to do what I want?

    Thank you

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                      xmlns:s="library://ns.adobe.com/flex/spark" 
                      xmlns:mx="library://ns.adobe.com/flex/mx"
                      minWidth="250" minHeight="250">
         <fx:Style>
              @namespace mx "library://ns.adobe.com/flex/mx";
              @namespace s "library://ns.adobe.com/flex/spark";
              
              @font-face
              {
                   fontFamily: Verdana;
                   fontWeight: normal;
                   fontStyle: normal;
                   src: url("./style/fonts/verdana.ttf");
                   embedAsCFF: false;
              }
              
              @font-face
              {
                   fontFamily: VerdanaCFF;
                   fontWeight: normal;
                   fontStyle: normal;
                   src: url("./style/fonts/verdana.ttf");
                   embedAsCFF: true;
              }
              
              mx|Label
              {
                   font-family: Verdana;
              }
              
              s|Label
              {
                   font-family: VerdanaCFF;
              }
         </fx:Style>
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <s:VGroup>
              <mx:Label text="My text" />
              <s:Label text="My text" />          
         </s:VGroup>
    </mx:Application>
    

    I think you need to put the fontLookup:

    s | Label

    {

    do-family: VerdanaCFF;

    fontLookup: "embeddedCFF";

    }

  • In Flex application feature sometimes works and sometimes does not...

    Hello

    Please help me on this...

    In my flex application features works sometimes and doesn't work sometimes does not...

    In my project, I have 5 sections with 5 separate screens... Each screen is a module of different.

    After logining in the application:

    I'll go to a screen... First time each feature works in this form...

    Ex: I have a screen with datagrid. This user select name from a datagrid job click on the next button...

    According to the name of the selected user work, I display information on the next screen and customer names.customer whose name is a drop-down list box.

    Here is the code:

    public void populateAllOEMCustomers(event:ResultEvent):void
    {

    1) var object_CustomerList:CustomerList = event.result as CustomerList; the values of the object //Assigining the object reference variable result.

    (2) var allOEMCustomersCollection:ArrayCollection = new ArrayCollection(); Variable declaration ArrayColliction referance.

    (3) var i: int = 0;
    (4) var customerComboLabel:Label = new Sun;

    (5) for (i = 0; i < object_CustomerList.arryCollCustName.length; i ++)
    {
    var strCustName:String = object_CustomerList.arryCollCustName.getItemAt (i) m:System.NET.SocketAddress.ToString ();
    var strCustId:String = object_CustomerList.arryCollCustId.getItemAt (i) m:System.NET.SocketAddress.ToString ();

    customerComboLabel = new Sun; Dynamic Declaration of the label.

    customerComboLabel.name = strCustName; Assinging the customer name in the label name box.
    customerComboLabel.text = strCustId; Assingning the customer id in the text box on the Label.

    allOEMCustomersCollection.addItem (customerComboLabel); Addition of Lable in the referace ArrayCollection variable collection.
    }
    customerComboID.selectedItem = ' - ';.
    OEMCustomersComboID.dataProvider = allOEMCustomersCollection;
    OEMCustomersComboID.selectedItem = - 1;

    }

    This feature works very well when I visit the first time on the screen... If you go back to another screen and return to the same screen and click the button following this names combo box customer time has no customer Details... I get Nullpointer Exception and it shows the number of the line 5 (I gave the above code number..)

    If I change the first line of the code to the following: each time the feature above works fine. Not getting no not an error msg...

    var object_CustomerList:Object = event.result;

    If I type cast in specific class (CustomerList), the feature does not work... do null pointer exception... If I type cast to object everything works fine... In my code each time I'm typecasted for the features of the specific class is not working (gettingNullpointerExcepion).

    Please help me on this... I don't get what could be the reason...

    I am using::Flex 3, Flash player 10.1

    Thanks in advance...

    Kind regards

    Satya

    Hi Satya,

    This sometimes as in your case may not work the way you have specified the RemoteClass attribute in your AS class. Because sometimes there may be a case because before it is mapped to a server-side, you are returned to the data and so that you can not get your custom class data but as normal object type.

    So to avoid this, you can map the class server-side for as classes in the Manager PreInitialize itself as shown below:

    Specify the preinitializeHandler in your main application and write the function below. That way, too, you can map as classes on the side server. So you will have no problem referring to your application AS class types.

    You can use the same line for recording of all classes. Using this, you can remove all of the [RemoteClass] attributes on all CLASSES and attach it to the unique place.

    preinitialize = "onPreinitialize ()" "

    private function onPreinitialize (): void
    {
    registerClassAlias ("com.expeditor.ScriptAdmin.Objects.CustomerList", list of clients);
    }

    In the line above the quoted string code refer to the namespace of the class on the server side and the second is your AS class. Also, remember to import the namespace from the correspondent as a class in the file.

    Try this and let me know...

    Thank you

    Jean Claude

  • Help-&gt; Flex Start Page does not open the Start Page

    Help-> Flex Start Page does not start Page.

    I see several entries bug concerning this resolved, but no description of what I can do about it.

    I use Flex Builder Professional on Windows XP

    I heard that this may be due in Internet Explorer when the popup blocker is enabled. Turn it off so popups are allowed, and can load the Flex Start Page.

    If this post answers your question or assistance, please mark it as such.

Maybe you are looking for

  • cleaning multithreaded DLL

    Hi all I'm building a small DLL (for use from matlab) for acquisition of data. One of the functions may take several hours: streaming over 1 million samples in a file. So for this particular function, I want (read: I'm trying) to run it as a backgrou

  • G7-2251dx update 5 GHz Wireless Pavilion?

    I have a HP Pavilion g7-2251dx Notebook PC with a WiFi Atheros AR9485 g/g/n adapter. This adapter supports only 2.4 GHZ, is there a replacement/upgrade that will help 5 GHz WiFi?

  • Configure a message to logon to the domain users

    Hello I installed a domain environment & user are properly login into that. but I want to configure different message to logon for users in my area I mean I want to send users information related to that particular user separately automatically when

  • Authentication Radius Cisco with Windows NAP with encrypted authentication

    I need authentication radius configuration for Cisco IOS devices for device management. My radius server is on Windows 2008 R2. Can I implement this with encrypted authentication? In the attached diagram, can what protocol I use for encrypted authent

  • Authentication Radius 4.2 ACS and RADIUS Accounting

    Is it possible to configure 4.2 ACS to authenticate users of a wireless network (with autonomous APs) through RADIUS while I use the same ACS to provide the command represent the points of access via GANYMEDE +? This issue came out because when I con