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

3 comments
Could you edit your post and throw in your PHP code here and try to embed your code again?
lol this isn't PHP coding site
"lol this isn't PHP coding site", Im trying to get php to interp the lua code shown. pl0x try agin