0 Favourites

get form text field values in php file.

  • 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 .

  • Construct 3

    Buy Construct 3

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

    Buy 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)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
[Plugin] tag text
188 25,442
RBuster's avatar
RBuster
Unread hot topic
118 32,896
rexrainbow's avatar
rexrainbow
Unread hot topic
0 Favourites
Grid based lighting/field of view
65 15,236
elwinalice's avatar
elwinalice