How to make website login form ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

How to make website login form ?

I have marked the form but I am not getting how to create website login form in which when the button of sign up or log in is clicked the name of the user is posted on the profile .

17th Jul 2017, 9:40 AM
Vansh
Vansh - avatar
8 Answers
+ 8
try this then: http://www.homeandlearn.co.uk/php/php.html it completely explain every basics of php including making a local server and creating functional login forms. PS:If you're new to php it will take a few days/week to finish it but you'll learn php basics right, once and for all.
17th Jul 2017, 1:41 PM
Farshad
Farshad - avatar
+ 7
Then you'll make your form using homeandlearn real quick.
17th Jul 2017, 2:08 PM
Farshad
Farshad - avatar
+ 6
You have to create a database (mysql usually) of users and make it reachable by php. After user logins you can use session storage to save the name and keep user loged in. Finally a php print will read the session and print the name on the web page. This is the whole idea, creating it will need a bunch of coding in php, search the net for a good step to step guide about how to do it.
17th Jul 2017, 11:44 AM
Farshad
Farshad - avatar
+ 6
I will use PHP and I have learnt advanced php
17th Jul 2017, 1:46 PM
Vansh
Vansh - avatar
+ 4
sorry but I am not understanding their way and I am not able to write the code as their code is not working
17th Jul 2017, 1:36 PM
Vansh
Vansh - avatar
+ 4
Did you know Php? Have you a Php host (even locally)? If your answer is 'no' to at least one of these questions, you will not be able to do 'real' securized login form ^^
17th Jul 2017, 1:38 PM
visph
visph - avatar
+ 3
Well, my previous post wasn't enough accurate: You can even so do real securized login form with other server sided languages than Php, but I guess you're not aware about backends (server side)? If I'm wrong, what is the language you use as server side? This will be a prerequisite to find a solution ;P
17th Jul 2017, 1:42 PM
visph
visph - avatar