36
rated 0 times
[
37]
[
1]
/ answers: 1 / hits: 32971
/ 11 Years ago, mon, december 9, 2013, 12:00:00
I have some javascript that sends data to a function that calls a php page, however I get an error that I can't find any information on. The postData() call is in the middle of another plain javascript function. But I can't get it to submit the data to the php page.
function postData() {
var postdataURL = path/to/php/page.php;
$.post (
postdataURL, {
formid:5,
clientid:1,
userid:1,
level:mycat,
extra:mytimer,
pid:pid
},
function () {});
}
More From » php