I want to post an variable to a PHP-File with This:
$.post( $("#executiveForm").attr("action") ,{id:idvalue},function(response){
if(response.message === "error"){
alert("Error");
}else if(response.message === "okay"){
location.reload();
}else{
alert(response.message);// always undefined
}
});
My Problem is, that the Parameter is sent to the PHP-File, but my PHP-File didn't respond. I've added the following Code at the first Line in the PHP-File to get an Error back (To test if the Post reachs the PHP-File):
$makeItFail = "";
echo $makeItFail.error.showMeSomeErrors;
Unfortunately, I only got the respond of my Whole PHP-Page, where I send the Post request... No Errors...
Pls dont answer with "Use $.ajax" or "XML...". I want to use "$.post".