Php $_POST through web url?

mikelowemikelowe Member Posts: 177
edited May 2012 in Working with GS (Mac)
Has anyone tried this? Where you send variables into a PHP script through the URL that you open with your GS game? I thought it would be an interesting way to log how many users play per day. You could write a script to tell your server +1 to a MySQL table every time the user opens the game. I thought it would also be cool if the user wants to subscribe to a newsletter.

Best Answers

  • simo103simo103 Posts: 1,331
    Accepted Answer
    @mikelowe ... I'm with you on wanting the URL to be more flexible .. it's not just analytics ... all kinds of database driven stuff could be done ... so I'm hoping it is considered for a future release, can't see how allowing the url to contain attributes would take much time to implement at all.
  • scitunesscitunes Posts: 4,047
    Accepted Answer
    This is probably my greatest wish. I really want to be able to make a web version of sciTunes Human Body curriculum. Basically I want to make an interactive textbook with my science games built right in, but I want to be able to have the students' scores sent to a database where the teacher can track the their students' progress. Without the ability to send attributes I'm out of luck. I would also need to have html5 projects that were bigger than the curent iphone landscape size.

Answers

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
  • mikelowemikelowe Member Posts: 177
    Well yea, I assumed that. But with PHP, you can pass a variable into a URL and then the server can store it. Maybe it could take the user to some kind of online news feed while it logs them. Just an idea that I thought I would share. I have always wondered how many users I have per day.
  • bazookaBenbazookaBen Member Posts: 318
    you're talking abt analytics. GameSalad isn't really focused on providing that atm
  • mikelowemikelowe Member Posts: 177
    @bazookaBen I know that GS isn't providing analytics. That is why I thought of this idea, for myself and anyone else who is interested to do it themselves.
  • mikelowemikelowe Member Posts: 177
    @simo103 I am pretty sure the URL can already contain attributes...problem is it has to go through the web view. I have not tried it because I do not have access to my database atm :(

    And yes, there are many possibilities, such as allowing the user to sign up for an email newsletter.
  • mikelowemikelowe Member Posts: 177
    @scitunes yea exactly! That is a great example of the endless possibilities. Unfortunately, GS is "game creation for everybody" and sadly, the use of Php and MySQL does not represent that :(

    But all they need to do is make the URL field have access to the attributes browser

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Yeah, if they added that it would open things up for devs with a programming skill set but it certainly would not hamper devs that can't/don't code.

    Fingers crossed that GS opens that up sometime soon.
Sign In or Register to comment.