Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • He isnt even really using the post request it just hits the url with a parameter in the query string so it is possible to use get Commented Jul 4, 2015 at 19:28
  • 1
    That's why he gets nothing using $_POST as the parameter is not posted but added to url. You know that and I also. Commented Jul 4, 2015 at 19:30
  • Yeah, I understand that now, also. I'm kinda noob in this particular topic.. Let me just ask you, then: if I did $http.post("ajax/testAddObject.php", {answers : userAnswers}) then $_POST['answers'] would work? Commented Jul 4, 2015 at 19:53
  • 1
    I never worked with angular js but related to the angular js documentation, your code should work. Commented Jul 4, 2015 at 19:56