I'm making a wild guess here, but does this work?

<mx:request xmlns="">
<first>{modelName.name.first}</first>
<last>{modelName.name.last}</last>
<email>{modelName.email}</email>
</mx:request>

Apologies if not, I've not made any attempt to see if it does so it could be 
utter rubbish.


-----Original Message-----
From: [email protected] on behalf of fprihoda
Sent: Sat 28/02/2009 19:09
To: [email protected]
Subject: [flexcoders] Sending POST requests to php script??Help
 
The following code is not working as I would expect it to.

<mx:HTTPService id="srv2" url="http://localhost/flex_web/addform.php";
resultFormat="object" showBusyCursor="true"
result="resultHandler(event)" method="POST">
<mx:request xmlns="">
<first>modelName.name.first</first>
<last>modelName.name.last</last>
<email>modelName.email</email>
</mx:request>
</mx:HTTPService>

modelName is an object. I would like to send the POST variables to the
php script using dot notation as shown above. The problem I am having
is that it sends the entire string "modelName.xxx.xxx" instead of the
actual object field.  I think this is a dereferencing issue, but I do
not know how to fix it.

Can someone help?



______________________________________________________________________
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
______________________________________________________________________

<<winmail.dat>>

Reply via email to