/    Sign up×
Community /Pin to ProfileBookmark

Post Data problems :S

I have searched and searched for tutorials and tips on how to use pot data properly, i have a game i made which sends info to a php script which compiles it into a txt file as the highscores, (yes very simple, it will be encrypted some time)
but in the game i need to make the url for the data to be sent to
key-
$score – variable in game, integer or long, depending on what the scores are likely to be.
$name – variable in game, the username inputted by the user
end key
this is an example of the url in the game, i tested on the real one. i tryed typing it into a web browser too with 800 replacing $score and phil replacing $name, doesnt work
http://www.bozebo.com/games/gamename.php?score=$score?name=$name
i tryed it a few other ways too, so basically i don’t know what it’s supposed to look like to send properly ?

can anyone help me??
i just need to know how postdata is sent in general.

ty in advance

to post a comment
Full-stack Developer

1 Comments(s)

Copy linkTweet thisAlerts:
@welshFeb 06.2006 — if ur sending the variables post then u can access them with
[code=php]
$score = $_POST[score];
$name = $_POST[name];
[/code]

make sure the fields names are score and name. post the code if ur havin trouble.
×

Success!

Help @Bozebo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...