I want to print the input value in flex to PHP.
My Flex Code...
<mx:HTTPService id="sendReq" result="google(event)" showBusyCursor="true" method="POST" url="http://localhost/search/index.php" useProxy="false">
<mx:request xmlns="">
<keyword>
{keyword.text}
</keyword>
</mx:request>
</mx:HTTPService>
<mx:TextInput text="" id="keyword" left="130.5" top="89" right="228.5" height="40" fontSize="20" fontWeight="bold" borderStyle="outset" focusThickness="0"/>
<mx:Button click="sendReq.send();" id="search" label="search" right="133.5" top="91" height="40" width="75" alpha="1.0" fillAlphas="[1.0, 1.0]"/>
My PHP code,
$keyword = $_POST['keyword'];
echo $keyword;
But i am not able to receive the keyword from Flex. Can anyone find the error down here which i am not able to get.