get form text field values in php file.

0 favourites
  • 2 posts
From the Asset Store
A very simple to set up ZElevation based depth of field system for your game. Fully commented.
  • i made a form using construct connected to MySql Database and i m using AJAX to connect to database (php code)..connection is done successfully but i don't know how to retrieve the values of construct form text fields to store in query database.

    i mean we use following query in php to insert in databse.

    $sql="insert into reg_tbl (uid,fname_tb,lname_tb,uname_tb,psw_tb,gen_tb,cntry_tb)

         values('$num_rows','".$_POST['fname']."','".$_POST['lname']."','".$_POST['uname']."','".$_POST['pw']."','".$_POST['gen']."','".$_POST['cntry']."')";

    My question is that how can i we get the values $_post[textBoxname]from construct to use its name in above query...?

    please help..

    thanks .

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi Himanshu,

    Would you please give me some instructions on how you made a form connected to MySql Database? I need to make a survey/questionnaire in Construct2 and store the results in a database such as yours.

    Thanks for your help in advance :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)