Current Page: 1 of 1
Results 1 - 3 of 3
5 years ago
peter75
UGHHH.... i am sorry. there is no diffrence in using jquery, BUT: if you are using "Content-Type", "application/json" php is bypassing this and not showing it in $_POST var. in oder to receive a plain json request with php you have to use: $data = json_decode(file_get_contents('php://input'), true); instead... you CAN NOT USE $_POST variable, cause it shows no content i
Forum: WampServer English
5 years ago
peter75
hello mr. RiggsFolly, it is not a acceptable problem report? first: is there a way to disable the stupid smiley faces? oherwise it is not possible to post readable plain code... or is it? you can see my very minimalistic code above. 1. simple html file . name does not matter. 2. a php file with only 6 lines - postTestReceiver.php. it does not work. there will be no post variable as lon
Forum: WampServer English
5 years ago
peter75
wamp server does not handle xhr.setRequestHeader("Content-Type", "application/json" when using POST! what is wrong? i already tried to config apache... no success. i now have a html file: <!DOCTYPE html> <html> <body> <input id="clickMe" type="button" value="clickme" onclick="serverTestPost('bert');" /&g
Forum: WampServer English
Current Page: 1 of 1