Will add more description on this post soon, enjoy for now. PHPlist is a powerful mailing list management tool, however the downturn came when there’s very little support in porting this to other type of output i.e. Flash. Thanks to the guys from phplist forums.
function submitRegister():void {
var fieldName:String = inputName.text; // your text field on the stage
var fieldEmail:String = inputEmail.text;// your text field on the stage
var formVariables:URLVariables = new URLVariables();
formVariables.attribute1 = fieldName; // the attributes are according to the form's input field
// anything below is a must to have, do not remove it, but you can modify it //
formVariables.name = "subscribeform";
formVariables.subscribe = "Subscribe";
formVariables.email = fieldEmail;
formVariables.emailconfirm = fieldEmail;
formVariables.htmlemail = 1;
formVariables["list[1]"] = "signup";
formVariables["listname[1]"] = "Your MailingList Name";
var formRequest:URLRequest = new URLRequest();
formRequest.url = "http://www.yourwebsite.com/lists/?p=subscribe&id=1"; // url of where your form/subscribe page resides
formRequest.method = URLRequestMethod.POST;
formRequest.data = formVariables;
var formLoader:URLLoader = new URLLoader();
formLoader.addEventListener(Event.COMPLETE, registerComplete);
formLoader.addEventListener(IOErrorEvent.IO_ERROR, registerError);
formLoader.load(formRequest);
}
function registerComplete(e:Event):void {
}
function registerError(e:IOErrorEvent):void {
}




