utterly confused about ajax

0 favourites
  • 1 posts
  • So I'm trying to make a really simple ajax request with a score and a name. Everything I've looked up suggests what I have is correct, but C3 says it's not valid.

    I'm putting the method as POST with a data string like this:

    [quote:2zbuxpp7]"score=" &Score & "name=" &highscorename.Text

    I've read lots of guides saying to use URLEncode, but that doesn't apply, since it's POST and not GET. Every time I check the $_POST['name'] in PHP it's empty, but $_POST['score'] comes up as say "462.66792name=liam" for example. What am I missing to split them?


    It needed to be this:

    [quote:2zbuxpp7]"score=" &Score & "&name=" &highscorename.Text

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)