0

Login Form

How do i setup a php server so that online users of my website will be able to login or sign up.

9th May 2019, 2:37 PM
Sasaga Isaiah
Sasaga Isaiah - avatar
2 Respuestas
+ 1
Easiest way is to host your site with someone who already offers php in the server so you don't have to set it up. If you're asking how you make a page function like that, that is a much longer answer. You will need an html form with a username and password field. The form can submit directly to a php file that will take those form values and query a database to validate the login. Usually you would get back the user and store them in a session of some kind so you can reference their user info throughout their logged in experience. You could also use jQuery or another javascript library to take the form data and send it asynchronously to the server php and process it that way. A sign up would work the same. Form gets processed by php which puts it in the database.
12th May 2019, 5:36 AM
Adam
Adam - avatar