sending a post from iOS app to php script not working… Simple solution is likey

后端 未结 3 1101
名媛妹妹
名媛妹妹 2021-01-01 01:16

I have done this several times before but for some reason I can\'t get the post to go through... I tried the php script with the variables set to _POST and without... When t

3条回答
  •  一整个雨季
    2021-01-01 02:17

    $_POST is an array, not a function. You need square brackets to access array indices:

    $newShift = $_POST['shift'];
    $bartenderUsername = $_POST['username'];
    

提交回复
热议问题