Get the GET/POST parameters?

Get help using Construct 2

Post » Mon Aug 20, 2012 10:24 pm

When the game is launched, it is done from a web site where you are logged in (so have a session)

The game needs to be able to access the session parameters to authenticate.

Also, URL parameters migh say what launage to use, or what skin to load.

how does one access & use these?

If they are not accessable, then I cant see how construct 2 can be used to write games lauched by a logged in user.
B
16
S
6
G
3
Posts: 363
Reputation: 3,903

Post » Mon Aug 20, 2012 10:38 pm

The browser plugin does query string, language and other useful infos like that.
In conjunction with the AJAX plugin, here you have some communicating with your website in both ways.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
258
S
90
G
48
Posts: 7,083
Reputation: 62,882

Post » Mon Aug 20, 2012 11:13 pm

Brilliant, thanks. Got the Ajax working a treat too.
B
16
S
6
G
3
Posts: 363
Reputation: 3,903

Post » Mon Jan 14, 2013 10:01 am

nameSend = 'Kwanta';
varScore = 100;

"http://localhost/gameData/connect.php?name='$nameSend'&score='$varScore'" ==code php

I want code construct2
B
6
S
1
Posts: 3
Reputation: 649


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests