How do I pull variables from a php page?

Get help using Construct 2

Post » Wed Oct 12, 2011 11:16 pm

Sorry about that I uploaded the wrong file:


http://www.4shared.com/file/lPCGszyi/AJAX.html
B
3
G
1
Posts: 50
Reputation: 725

Post » Thu Oct 13, 2011 1:54 am

I have successfully made a example where I can save and load data via AJAX without a lot of events. I will be posting my results as soon as I have everything organised the way I want them.
B
3
G
1
Posts: 50
Reputation: 725

Post » Thu Oct 13, 2011 2:39 am

Thanks master, I hope your work very attentive. from Chile
B
7
S
2
G
4
Posts: 18
Reputation: 2,578

Post » Thu Oct 13, 2011 4:41 am

Online demo working:

http://peepelz.com/wish.php

This is saving and loading from a database using one string.
B
3
G
1
Posts: 50
Reputation: 725

Post » Thu Oct 13, 2011 1:42 pm

English:B781rev excellent, very good work, I think everyone expected this. I get the impression that the values ??are returned is the same for any user. It is imperative that a user logs on and loaded the data. I think with that write history. The moderators were saying that php is not an issue, but you have proven that it is very important save and load data. No doubt this is the best post. My greetings and much respect for you

Espanol :Exelente b781rev, muy buen trabajo, creo que todo el mundo esperaba esto. Me da la impresion que los valores que se devuelven es el mismo para cualquier usuario. Es imprescindible que un usuario inicie sesion y se carguen los datos correspondientes. creo que con eso escribiras historia. Los moderadores decian que php no es tema, pero usted ha demostrado que es muy importante lo de guardar y cargar datos. Sin duda este es el mejor post. Mis saludos y mucho respeto por usted.
B
7
S
2
G
4
Posts: 18
Reputation: 2,578

Post » Thu Oct 13, 2011 4:42 pm

Ok, I just gone done downloading the newest version and I was playing around with the input boxes and buttons. I made a program where you can login an account via AJAX with the forms on the game. I don't know if it's the most secure way to do it but it's just the point of it. It's awesome.
B
3
G
1
Posts: 50
Reputation: 725

Post » Thu Oct 13, 2011 5:14 pm

Will publish the *. capx?
regards.
B
7
S
2
G
4
Posts: 18
Reputation: 2,578

Post » Thu Oct 13, 2011 9:31 pm

@b781rev this sounds good. I had started making notes on a simple score system that I used in my first demo, it seems you've done more work. If you can put up a tutorial or sample files I am sure many would appreciate it.
B
18
S
8
G
7
Posts: 120
Reputation: 5,630

Post » Thu Oct 13, 2011 9:58 pm

Wow b781rev, this is impressive!
I'd love to see your solutions to this, can you post your project to the community?!
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Thu Oct 13, 2011 10:04 pm

Ok, here is the .capx:


http://www.4shared.com/file/6glBPu19/login.html

jax.php:

<?php
$username=$_GET['username'];
$password=$_GET['password'];
echo $username."\n".$password;
?>

Or whatever you need to put in your php page to login. Of course, that is not all of it.
?>
B
3
G
1
Posts: 50
Reputation: 725

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], BinaryPanda, MarkThomas and 19 guests