Help with POST and GET

Help with POST and GET

Hi all, I hope I am posting in the right forum now. I currently have a page written in PHP with a form on top, some information in the middle and an iframe on the bottom. Now when someone submits a word such as "test" in the form what happens is that the page reloads while the word is sent as POST to domain A and as GET to domain B which is also the url for the iframe. Then the page returned from domain A is parsed looking for something similar to <?xml version="1.0" encoding="UTF-8"?><tag>answer</tag> using regex and the "answer" is written inside a div on my page, while the the iframe url is changed to contain the word sent as GET. If domain B was google then when someone enters my page the iframe url would be http://www.google.com/search?q= but after the form is submitted the iframe url would be http://www.google.com/search?q=test instead. Hopefully this was not confusing since I did my best to try to explain it.

Now the problem is that there is a single server hosting domain A, domain B and my page, and the server is going to be replaced with an ASP server instead of PHP as it is now. Since I will have to learn ASP and rewrite my page to ASP to get it working, I decided that I would rather learn AJAX and rewrite my page to be standalone so that it can run just as well on a personal computer as it can on a server (no serverside scripting dependency). Unfortunately this was easier said then done and after a lot of searching and reading I have still not accomplished my goal. Someone recommended I use jQuery since it would simplify my workload and after reading online about jQuery I was very impressed and I am looking forward to work with jQuery, but before I start spending more time on this project, I hope someone can shed some light on if my goal can be accomplished with jQuery or accomplished at all without serverside scripting?