You can use the XmlHttpRequest to send a HTTP POST request. You set the HTTP Method to POST in the open(...) call, and then pass the form data into the send() call.
- From your post, I'm not sure if you're familiar with the HTTP protocol. Glance over RFC 2616 if you don't know exactly what sets GET and POST requests apart. See http://www.w3.org/Protocols/rfc2616/rfc2616.html
- The string passed into the send method look just like a query string in a HTTP GET: it's "var=value&var=value&var=value".
- The example above would work for an actionform containing two fields: foo & baz.
- You have to url-encode the request contents. I probably got the capitalization wrong in the example. You may have to hit google for a bit.
- A "live HTTP headers" tool is invaluable in debugging these things. There's an extension for Firefox, and a seperate program for Internet Explorer. Of the latter, I don't remember what it's called, but it's often referred to on ieblog.
- You may have to set some request headers before calling the send(...) method. See note #1.
[ November 15, 2005: Message edited by: Barend Garvelink ]