开发者

flex form submission

开发者 https://www.devze.com 2023-01-21 05:40 出处:网络
Your function would look like this: submitForm():void { var req:URLRequest = new URLRequest(\"http://localhost/c/x.php\"); req.method = URLRequestMethod.POST; var vars:URLVariables = new URLVariables(

Your function would look like this: submitForm():void { var req:URLRequest = new URLRequest("http://localhost/c/x.php"); req.method = URLRequestMethod.POST; var vars:URLVariables = new URLVariables(); vars.yourVar = 'yourValue'; req.data = vars; var ldr:Loader = new Loader(); ldr.load(req); }

("Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type")

i wrote action script as above i want to load php file from a page by posting a set of inputs from a form that was developed in adobe flex.by 开发者_JAVA技巧giving the above code it is telling loader file has unknown type.how to load php file?

0

精彩评论

暂无评论...
验证码 换一张
取 消