Ciao a tutti.
Devo inviare due dati da una maschera fatta in flex a un file php.
io ho fatto questo:
codice:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" creationComplete="userRequest.send()" viewSourceURL="srcview/index.html">
<mx:HTTPService id="userRequest" url="ris_ric_fatt.php" useProxy="false" method="GET">
<mx:request xmlns="">
<n_fatt>{n_fatt.text}</n_fatt><cod_cli>{cod_cli.text}</cod_cli>
</mx:request>
</mx:HTTPService>
<mx:Text x="60" y="25" text="prova"/>
<mx:Form x="60" width="371" height="149" backgroundColor="#eeeeee" backgroundAlpha="1.0" y="51" >
<mx:FormItem label="Codice cliente" required="true" fontFamily="Arial" fontSize="10">
<mx:TextInput id="cod_cli"/>
</mx:FormItem>
<mx:FormItem label="Numero fattura" required="true" fontFamily="Arial" fontSize="10">
<mx:TextInput id="n_fatt"/>
</mx:FormItem>
<mx:FormItem label="Label">
<mx:Button label="Submit" click="userRequest.send()"/>
</mx:FormItem>
</mx:Form>
</mx:Application>
Però non funge. carica, ma non succede niente.
Dove sbaglio?
Grazie,
Ale