Hey guys,
Currently i'm trying to send information to my website, via HttpPost and then get a return w/ HttpPost.
What im trying to do w/ Lua:
game:GetService'HttpService'.HttpEnabled = true
HS = game:GetService'HttpService'
data = {['name']=game.Players.LocalPlayer.Name,['UserId']= game.Players.LocalPlayer.UserId}
json = HS:JSONEncode(data)
json = 'data='..json
print(json)
a = game:HttpPost("Host.com/Sub" ,json)
print(a)
or
game:HttpPost("Host.com/Sub","Player: ".."game.Players.LocalPlayer.Name"..", PlayTime: "..curtime())
what i've got in my php code
`<?php echo var_dump($_POST); echo $_POST['data'];
?>`
( As I saw in other posts)
or `<?php
echo $_POST['player'].$_POST['time'];
?>`
I was hoping someone could help me :s