Hello All,I am trying to create a widget that will accept user input in flex and then pass that info into a server side script which will generate an e-mail. If anyone has experience trying something similar I'd love to hear about it. I'm thinking about using PHP on the server side but have heard that could present security issues. On the flex side I've seen examples using an HTTP Service call as well as some using URLLoader. Any suggestions on best practices?Flex HTTP Service<fx:Declarations>
<mx:HTTPService id="phpService"
url="http://arcgis.allconet.org/mailVAR.php"
useProxy="false"
method="POST">
<mx:request xmlns="">
<subject>{userName.text} + " " + {userContact.text}</subject>
<message>{userMessage.text}</message>
</mx:request>
</mx:HTTPService>
</fx:Declarations>
URLLoadervar mailRequest:URLRequest = new URLRequest("http://arcgis.allconet.org/mailVAR.php");
var mailLoader:URLLoader = new URLLoader();
var mailVariables:URLVariables = new URLVariables();
mailVariables.subject = userName.text + " " + userContact.text;
mailVariables.message = userMessage.text;
mailRequest.method = URLRequestMethod.POST;
mailRequest.data = mailVariables;
mailLoader.load(mailRequest);
PHP<?php
$email = "someone@allconet.org";
$subject = $_POST['subject'];
$message = $_POST['message'];
mail($email, $subject, $message);
?>
Thanks for all input!Greg