# Form post and response

**URL:** <https://forum.kirupa.com/t/form-post-and-response/282001>\
**Category:** flash\
**Created:** [February 16, 2009, 3:53pm UTC](https://forum.kirupa.com/t/form-post-and-response/282001 "2009-02-16T15:53:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michda](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@michda](https://forum.kirupa.com/u/michda)\
**Post date:** [February 16, 2009, 3:53pm UTC](https://forum.kirupa.com/t/form-post-and-response/282001/1 "2009-02-16T15:53:25Z")

</div>

Hi guys, I’m really new to action script and I have a requirement to do a http post and capture the result from the server. I can do a http post and the result opens in a new browser page but I need to capture the resulting HTML and do some regex or xpath to check for the value of an element. If it’s there I need to change the frame displayed to a sucess, if not display the frame showing an error occured. The code I have at the moment looks like: var senderLoad:URLVariables = new URLVariables(); var url:URLRequest = new URLRequest(); url.method = URLRequestMethod.POST; url.data = senderLoad; url.url = postURL; senderLoad.Value1 = Value1.text; navigateToURL(url, “\_blank”); If anyone can point me to a tutorial that shows how to capture the result without opening a new browser windows/tab or provide some example code on how to do this I would really apprechiate it. Many thanks Michael
