neocreed's Recent Forum Activity

  • Sending multiple values:

    "score=" & score & "&level=" & level & "&time=" & time[/code:30pl057g]
    

    It's not working this way,

    Can you please send me with example.

    Thanks

  • Thanks for the quick reply.

    I have done with the ajax request .

    Actually I wanted to do with session.

  • HI all,

    I'm using construct 2 r178 release.

    Is there any way in the construct 2 to access the WebStorage stored session during the game that can access also the in PHP.

    If possible, Please tell me with the example.

    Thanks a lot for help.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks buddy,

    can you also tell me with example.

    I'm sending some data from php file like

    <?php

    echo $data=10;

    ?>

    how can I read the echoed data in construct 2

    in the end I wants to read data of php into the construct 2

  • How would I encrypt my post data before sending via post method and decrypt it in php.

    suggest me your opinion

    Thanks.

  • Thanks a lot buddy,

    is there any way by which we can send multiple data via post method.

    also tell me how can I encrypt the data before sending via post method.

    and decrypt in php.

    Thanks.

  • of course I can do that but right now my problem is I m not able to get the post data in the post method , please see the example which I have attached.which will be more explanatory.

    Thanks

  • Hi,

    I m new to novice to construct 2, I'm using constuct r178 release.

    I have created one capx file for the example .

    basically file is used to send textbox value to the php page via POST method and that data is stored into the database.

    By doing so I am facing some error because of that I'm not able to retrieve the data in the php file.Please suggest me the solution

    Here is the php code for the reference

    <?php

    /*db connection menthod*/

    header("Access-Control-Allow-Origin: *");

    $query = mysql_query("insert into score (`score`)values('".$_POST['score']."')");

    if($query)

    echo "done";

    else

    echo "notdone";

    ?>

    /*getting error of */

    Notice: Undefined index: score in

    Please suggest your opinion.

  • Hi,

    I m new to novice to construct 2, I'm using constuct r178 release.

    I have created one capx file for the example .

    basically file is used to send textbox value to the php page via POST method and that data is stored into the database.

    By doing so I am facing some error because of that I'm not able to retrieve the data in the php file.Please suggest me the solution

    Here is the php code for the reference

    <?php

    /*db connection menthod*/

    header("Access-Control-Allow-Origin: *");

    $query = mysql_query("insert into score (`score`)values('".$_POST['score']."')");

    if($query)

    echo "done";

    else

    echo "notdone";

    ?>

    /*getting error of */

    Notice: Undefined index: score in

neocreed's avatar

neocreed

Member since 10 Oct, 2014

None one is following neocreed yet!

Trophy Case

  • 10-Year Club

Progress

10/44
How to earn trophies