I m trying to pass a collection of parameters to a PHP page to be processed, from a JavaScript function:
entries: "test data from JavaScript"
在我的PHP网页Im试图冲淡贴在网页上的价值:
$_POST[ entries ]
但是,不管我试图推动什么,这种情况仍然令人高兴。 住房价格指数新元,因此这可能是固定的 st。
This is invoked from a button click like such:
$("#submitButton").click(function(){});
是否应当采取形式,因为我看不到这一点的必要性?
Update [full code]
var proxy = new ServiceProxy("submit.php");
$("#submit").click(function () {
var store = $("#store_name").val();
var contact = $("#contact_person").val();
proxy.invoke("", { entries: store }, success, error, false);
return false;
});
Note on the ServiceProxy. This proxy class wraps the default $.ajax {...} into a neat little proxy class, thanks to Rick Strahl over at west-wind. I ve used this proxy class successfully in numerous single HTML and ASP.Net solutions in the past, so I don t it s the proxy service that s causing the issue.