Skip to main content
edited body
Source Link
Javatasse
  • 256
  • 1
  • 7

How did you come up with the round brackets? The semicolon ist also wrong.

Objects come with curly brackets and arrays with square brackets. Your string will work with the 2 issues corrected. The values can be accessed with response.userblock, response.fileName ... There is no "message" in the response, so you wontwon't get anything there.

You should use the json_encode function in PHP. It might also be a good idea to also catch the errors.

How did you come up with the round brackets? The semicolon ist also wrong.

Objects come with curly brackets and arrays with square brackets. Your string will work with the 2 issues corrected. The values can be accessed with response.userblock, response.fileName ... There is no "message" in the response, so you wont get anything there.

You should use the json_encode function in PHP. It might also be a good idea to also catch errors.

How did you come up with the round brackets? The semicolon ist also wrong.

Objects come with curly brackets and arrays with square brackets. Your string will work with the 2 issues corrected. The values can be accessed with response.userblock, response.fileName ... There is no "message" in the response, so you won't get anything there.

You should use the json_encode function in PHP. It might also be a good idea to catch the errors.

Source Link
Javatasse
  • 256
  • 1
  • 7

How did you come up with the round brackets? The semicolon ist also wrong.

Objects come with curly brackets and arrays with square brackets. Your string will work with the 2 issues corrected. The values can be accessed with response.userblock, response.fileName ... There is no "message" in the response, so you wont get anything there.

You should use the json_encode function in PHP. It might also be a good idea to also catch errors.