Pls after creating a sign up form for my websites, how will I save the their input into a database for use later like for login | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Pls after creating a sign up form for my websites, how will I save the their input into a database for use later like for login

27th May 2020, 9:05 AM
Awojobi Godfrey
Awojobi Godfrey - avatar
3 Answers
+ 1
Here you need some php lines,, First: make a connect to database ( search about mysqli_connect('host name' , 'userName', 'password', 'databaseName')) Second: you need an insert query into database table ( search about INSERT INTO $tableName (column name) VALUES ($_POST('$input1') The $input1 referes to the value of name attribute in html input element.... Hope this helps you
27th May 2020, 9:31 AM
Raven
Raven - avatar
0
Yes thanks
27th May 2020, 1:48 PM
Awojobi Godfrey
Awojobi Godfrey - avatar
0
Awojobi Godfrey you are welcome..
27th May 2020, 6:10 PM
Raven
Raven - avatar