AJAX Post Problem

Get help using Construct 2

Post » Sat Sep 15, 2012 4:46 pm

Here are all the files:
https://www.dropbox.com/sh/w34mew65rymweg5/UyHw8LXmXI
B
22
S
9
G
3
Posts: 203
Reputation: 3,647

Post » Sun Sep 16, 2012 3:12 pm

? Anyone have any ideas???
B
22
S
9
G
3
Posts: 203
Reputation: 3,647

Post » Mon Sep 17, 2012 2:05 am

You would need to check with a php person. I'm fairly familiar with JavaScript and basic php. I've never even heard of sessions so I couldn't comment. Try stackoverflow.com for php help :) you had said that if you plug the info into the URL manually it worked so either something in your capx is wrong or maybe the session thing is messing it up. Did you plug in my basic php file from earlier? It has no session stuff in it and I know it works with MySQL. So it at least could tell you if you have the construct2 side of the coin correct.
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Mon Sep 17, 2012 2:33 am

Thanks for your help Lanceal.
I can insert into databases and get info from databases easily enough. Your capx and the tutorials led me through it. The problem is updating info in a database.
I think it is the session part that thwarts me.

A session is basically a cookie or token that maintains a connection between the browser and server, that way when you login to a website and go from one page to another (http://somesite.com/index.php to http://somesite.com/myprofile.php) the server remembers your info on the website's database. Otherwise you would have to login to view each individual page of a website (like facebook or even scirra.com)

I will try stackoverflow. I just hope someone on there has knowledge of C2 AJAX requests. I don't think anything is off in my php code.droptank212012-09-17 02:35:02
B
22
S
9
G
3
Posts: 203
Reputation: 3,647

Post » Mon Sep 17, 2012 2:36 am

Until i figure it out I will just have users manually input their username and then AJAX post that along with their score.
B
22
S
9
G
3
Posts: 203
Reputation: 3,647

Post » Mon Sep 17, 2012 12:01 pm

:) no problem
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Previous

Return to How do I....?

Who is online

Users browsing this forum: Mallets, Yahoo [Bot], zenox98 and 28 guests