How to pass data from a SWF in a page php using InDesign?

Hello

I'm currently trying to create a system of star ratings in InDesign CC. essentially, a user clicks a star that is associated with a number in a field text preset, the number will be passed to a php page, the php page is updating a database, and then the user will be directed to a separate page that will present to him the number of the star selected, with an average of all ratings.

I wanted to do it all in html and php, but I have to keep the shape of PAS to the swf format. Originally, I made each star go to a separate php page. Page php the contained value. It worked well, but it make much sense to have the swf go on multiple php pages.

I wish I could click on a star who will submit a predefined form (if I click on the first star, he would submit '1') to a php page. I created a button on each star that 'Go To URL' and 'Submit form', but my php page does not display numbers. I have numbers in separate text fields, each one labeled accordingly. For example, 1 is labeled as 'one' in the name of buttons and forms. Is the name of the text field variable sent to the php page with the number value?

My php is incorrect. I deleted all the fields of text, except one and tried using both GET and POST in the following way:

<? PHP

echo 'Hello ';

echo $_POST ['a'];

echo $_GET ['a'];

? >

Instead of showing "Hello 1" I show only "Hello".

It is even possible to send data to predefined form of a swf file to a php page? I use the names of right?

Essentially, a user clicks a star that is associated with a number in a predefined text field, the number will be passed to a php page, the php page is updating a database,

You won't be able to do this with an InDesign generated SWF. The only way to establish a connection to a database of Flash is via a combination of Actionscript connecting to PHP in Zend AMF, that writes to the database.

Introduction - Zend_Amf - Zend Framework

You will need to write ActionScript that connects to the AMF PHP in a FLA and compile the SWF of Flash file or code FlashBuilder.

Tags: InDesign

Similar Questions

  • pass data from childCardDone to a textfield in QML?

    I have a card camera call function that responds with the path of the image once a picture is registered using the childCardDone function.  I have no idea how to pass data from c ++ to qml.  I know that during the passage of the QML for C++ database, you set a QString & something.  How can I do the reverse?

    Here's my CPP code:

    void App::childCardDone(const bb::system::CardDoneMessage &message)
    {
        if (message.reason() == "done")
    
    //      Need the message.data() info in my QML
         message.data();
    
        qDebug() << message.reason() << "\n";
        qDebug() << message.dataType() << "\n";
        qDebug() << message.data() << "\n";
    }
    
            public slots:
            void childCardDone(const bb::system::CardDoneMessage &message);
    

    and I just want to get the value of message.data () into a textfield label in QML:

    Label{
    id: capturedFilePath
    text: <>
    }
    

    All help is appreciated and will be loved and accepted as a solution if it works.

    Thanks in advance.

    For use in your function you will need to decalre in the header.

    In the header to declare,

    AbstractPane * root;

    Then, change

    AbstractPane * root = qml->() createRootObject;

    TO

    root = qml-> createRootObject();

  • Marshall plan: how to pass data between the main field and sub-application

    Hello

    I'm trying to load a Flex 3.5 application in Flex 4. In the process, I need to move a strong local typed object from main application to the loaded swf file. And I also have to pass a rope and a bitmap of application sub to the main application. Have an example to show how to pass data in the application domain?

    Thank you

    SW

    Define scaleContent = true, set a breakpoint on SWFLoader.as:doScaleContent and

    see if he thinks there's a swfBridge.

  • Passes data from leaf of great pl/sql procedure as a parameter.

    Hello
    I use ORACLE Database 11 g and RHEL 5.

    I have a procedure in my database that will update the table required for a single value, which before the end users (Java). Now I want to change it to update several records in 'BULK'.

    I studied the SQL Loader and knowledge. But this time I want to insert data into an oracle table excel, if I want to pass data from excel to a procedure as a parameter. I also do this process in BULK mode.

    Here is an example of code that take input for a front end value and updates the table...
    PROCEDURE TAB_UPDATE (SYMBOL     IN SYMBOL_INDEX.SYMBOL%TYPE,
    END_DATE IN SYMBOL_INDEX.END_DATE%TYPE)
     IS
     BEGIN
         V_QRY1 := '';
         V_QRY2 := '';
         V_QRY1 := 'UPDATE SYMBOL_INDEX';
         V_QRY2 := 'SET END_DATE = '''||END_DATE||''' WHERE SYMBOL_IDENTIFIER = '''||SYMBOL||''' AND END_DATE IS NULL';
         PRO_EXEC(V_QRY1,V_QRY2);
     EXCEPTION
      -----------
     END TAB_UPDATE ;
    Now this simple plsql code of the procedure updates a record at a time, whenever the user needs to insert a new value of front end to update its value.

    Please suggest me how to perform this procedure to take value of parameter of an excel sheet and also update all records in BULK.

    Should I use varrays? If possible, please give some links or code samples...


    Thanks in advance!

    I don't know, because I can't test it now, but you say STAGE_ID (the last column) ends by "," while in your data there is no comma after the last value. You can try to add a comma and load again?

    Marcus

  • How to erase data from the iphone if I lost and iphone is offline

    How to erase data from the iphone if I lost and iphone is offline

    < post branched out by host >

    Hello

    What to do if your iOS device is turned off or offline?

    If your missing device is turned off or offline, you can still implement this Mode lost, lockor remote wipe. The next time your device is online, these measures will take effect. If you remove the device from your account while it is offline, pending actions for the device will be cancelled.

    If your iPhone, iPad or iPod touch is lost or stolen - Apple supports

  • How to delete data from the iPhone 5 c?

    How to remove data from my iPhone 5 c?

    What do you mean by data? Applications, photos, music??  It depends on what you're trying to delete.

  • How to transfer data from a mac mini in 2006 for a new?

    How to transfer data from a mac mini in 2006 for a new?

    The following can help:

    Move your content to a new Mac - Apple Support

    OS X: manually the Data Migration from another Mac - Apple Support

  • How to transfer data from my computer to a new phone

    How to transfer data from my computer/Itunes to a new device? I downloaded all my data from an Iphone 4 on my computer and I wonder how to transfer all of these data to an Iphone 5 that I own. I need to my emails and text messages transfer too. Any ideas? Email that I have Setup with my phone is an email from work, so it is important that I do not lose one of them.

    You must put all your media files in iTunes. Synchronize your phone using iTunes.

    iTunes - Apple Support

    iPhone - Apple Support

  • How to save data from the COM port to file?

    Hi all

    can someone tell me please how to save data from the COM port on file? I transfer 1 byte of serial port... attached is the image of the vi... very basic.

    I would like to save the data in a table... I mean, 1 data--> data--> data tab 2 tab 3rd--> tab

    and so on... can anyone help?


  • How to transfer data from a DLL Delphi pascal class to a LabView data cluster?

    Hi all

    I have the following problem:

    I use a dll written in Delphi Pascal to transfer data to LabView by using the "Call library function node".

    My Delphi dll contains this class:

    TFlash = class
    Fi: TFileInfo;
    constructor Create;
    procedure LoadFi (Filedir_and_nametring);
    end;

    TFileInfo = record
    IDX:smallint;
    IdxLstSpl:array [0.4] of longint;
    Ms: Word;
    [0.4] SP:array of the word;
    end;

    I created the record datastructure of TFileInfo in a cluster of LabView to have the 'same' variable.

    My plan was to call a DLL Deplhi function with the "call library function node" and pass the address of the folder TFileInfo, so the data would be transmitted to the cluster of LabView.

    When I do a simple delphi dll function as this works because I only spend a small integer to Labview (without reference to the data structure):

    ...

    var data: TFlash;

    ...

    function GetNrOfRows(FilePath:_string):integer; STDCALL;
    Start
    Data: = tflash. Create;
    Data.LoadFi (FilePath); This function returns the number of lines in the selected file.
    Result: = Data.Fi.Idx;
    end;

    When I try to use this procedure instead of the above function, in order to pass the address of the data set structure complex 'Data' (TFileInfo), I am unable to get the information of 'Data' in my Labview cluster:

    procedure LoadFileInfo (FilePath: string;) DataPointer: Pointer); STDCALL;
    Start
    Data: = tflash. Create;
    Data.LoadFi (FilePath);
    DataPointer:=@Data;
    end;

    Parameters of call library function node:

    -stdcall (WINAPI)

    -Run in the UI Thread

    -Function prototype: void LoadFileInfo (PStr FilePath, void * DataPointer);

    * DataPointer--> Type: "adapt the type" and the format of the data: "pointers to the sleeves.

    * FilePath--> Type: 'string', format of the string: "pascal string pointer.

    I'm struggeling with this problem for almost a week now and I can't really find a solution on the forum or google.

    I also read the following posts:

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=229930&requireLogin=false

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=77947&requireLogin=false

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=51245&requireLogin=false

    (or did I miss something in these messages?)

    Hope my explanation is clear.

    THX

    A little further:

    Seems like it's not possible to pass data from Delphi to Labview through a DLL when I create a cluster with 2 bays in it in Labview.

    This part of Delphi, I've had to make in Labview:

    TFileInfo = record
    IDX:smallint; {integer; Convert tool}
    IdxLstSpl:array [0.4] of longint;
    Ms: Word;
    [0.4] SP:array of the word;
    end;

    Instead of using 1 cluster with all the different data in it, I did a unit (1) with my 2 items (smallint and word).

    To pass my data in my tables from delphi to labview, I created another group (2) in the unit (1) with 5 elements of longint (because my delphi is going to 0.4) and another group (3) in the unit (1) with 5 Word elements.

    Right-click on the unit (1) and the clusterorder in the right order. First the smallint, then the longint table, then the word and the Word table.

    When I then use this code in my dll Delphi, IT WORKS! :

    procedure LoadFileInfo (FilePath: string;) DataPointer: PtrTFileInfo); STDCALL;
    Start
    Data: = tflash. Create;
    Data.LoadFi (Copy (FilePath, 2, length (FilePath)-1));         --> I need to cut the first part of the pascal string because it's length, and I only need the string itself
    DataPointer ^: = Data .fi;       --> pass the record structure to the cluster of Labview
    end;

    Thanks for the info Ralf!

  • How to acquire data from the memory of the meter

    I am a beginner of Labview. I don't know how to acquire data from the memory of the meter.

    I read a few examples of data acquisition, but apparently not similar to my case. I can't use DAQ in my computer, because I don't have DAQ card.

    Could someone give me some pointers? Similar examples would be great.


  • How to transfer data from USB key

    How to transfer data from the reader flash player (C), when you open send it to it does not have this option

    Drag & drop.

  • How to erase data from 2 printers I want to throw - HP Laser Jet CP1215 &amp; HP Laser Jet III

    How to erase data from 2 printers I want to throw - HP Laser Jet - CP1215 & HP Laser Jet III thank you

    The CP1215 can be reset as described in the paper here.  The Laserjet III has no memory, which would keep the work print or any other private beyond information to remove the power.

  • How to transfer data from an old laptop (broken screen) to a new laptop

    How to retrieve data from an old laptop, to transfer to the new laptop. the problem is that the screen is broken on the old portable th.

    From Internet Explorer

    Original title: data transfer

    The easiest way would be to put his HARD drive in a box that connects to the computer by USB.

    This is just an example - http://www.amazon.co.uk/Hard-Drive-Caddy-Case-Enclosure/dp/B003MVW2SM

    You probably have a 2.5 HDD "because I know that all laptops do.  If you need to buy an enclosure for a 2.5 drive "[not a disk 3.5" that could come from a desktop computer].

    Almost all cases derive the power to drive the HARD drive to the USB itself [rather than an external power].  If you see one that needs an external power supply, then you are probably looking to the wrong thing.

    You need to know if the HARD drive is IDE or SATA.  It depends on the age of the computer.  Your computer's manual should tell you or you can whip the HARD drive just to have a look.

  • How to recover data from the choicefield retained

    Hello

    How to recover data from the choicefield retained

    Thank you

    SujithRavindran

    getSelectedIndex method will help you.

Maybe you are looking for

  • Downloads area

    Hello The Downloads box, when I click on the arrow down "Show more downloads" extends to a large box with NO OPTION to close. It remains open and takes up the entire screen. I've only been able to move it to the side, but not yet able to close for we

  • Satellite NB10t-A-101 refuses to boot from any external media

    I just bought a NB10t to the United Kingdom and try to boot to a bootable USB key I noticed that the BIOS on this particular model is UEFI mode only, which, in itself, is not a problem because users can sign their own operating systems with a certifi

  • How to add a few seconds delay between songs on a playlist

    How can I add a few seconds between songs on my playlist without a crossfade iPod? I have an iPod nano 16 GB. Looking to add about 10 to 12 seconds or more.

  • HP15r: power lost the password on hp15r

    have a hp15r given to me by my sister... when I power on it shows date and time... Press enter and I get a blue screen stating his name and want the password... I tried to many passwords that she gave me and none does not work... not available backup

  • The A7-40 or the A7-50 has the zoom feature?

    HI there, it is a question before you buy the product, I was hoping that there was a feature of zoom (using the thumb and index fingers), It is mentioned in the manual A10-70 (end of Chapter 2 for internet browsing and connection) but not in the manu