是否可以/如何使用jQuery / Ajax在远程服务器上输入数据并提交表单

I have a form on a remote server, consisting of just a text box and a submit button. Once this form is submitted (PHP) XML is returned. How can I go about using ajax/jQuery to fill out this form, submit it, and receive the XML to process?

Untested, I think you should be heading somewhere in the direction of the following JS. Ofcourse, this is light thinking, there could be all kind of implications with the following (eg. XSS protection etc..). But if we're talking a simple, plain form, I think this could work.

Also, expanding the following with some failure fallbacks etc would be good practice. For documentation on the Ajax function, check the API docs.

// This should be the URL where your <form> action's value is pointing at
var url = 'http://remote/form/action';

// The textfield's data you want to submit
var textFieldValue = 'foobar'; 

$.ajax(
    url,
    {
        'type': 'POST',                        // Could also be GET, depending on your form
        'data': {
            'textFieldName': textFieldValue,   
        },
        'success': function (data) {
            console.log(data);                 // Your raw XML in a string
        }
    }
);

Edit: As Kevin B mentioned, you'll be heading into cross-domain policy problems with the above, making this situation that more complex. Therefor you should need to make sure you have CORS arranged on the targeted domain. See Wikipedia CORS for more info.