0
我需要使用参数让一个url的后调用让我们说a =“x”,b =“y”,c =“z”和d是表单数据字段。这是我在HTML表单上传的文件。打一个阿贾克斯电话,我打电话。传递一个表单数据字段到POST调用
$.ajax({
contentType: false,
processData: false
type: 'post',
url:"some url i put here",
data: {
a: "x",
b: "y",
c: "z",
}
})
.done(function(data){
alert("Data: ", data);
});
HTML部分是
<body>
<input id="filey" type="file" size="40"><br><br>
<button>Send an HTTP POST request to a page and get the result back</button>
</body>
</html>
需要注意的是A,B,C都事先知道我。 我如何通过d?
什么是您的服务器端语言?也可以在html页面添加表格 –