Php code for validating username and password

Posted by / 21-Apr-2016 18:16

There is also an easy method to put CAPTCHA on a webpage.

But now in this article we will just learn how to design a Sign-In webpage. Listing 1: Figure 1: Output of the Sign-in Webpage In Figure 1 you can see the output of the Listing 1.

In the next one, we used for the div tag and we identified it by Sign-In in the CSS styles webpage.

In the last we used an ID for button and we applied CSS styles on it.

And we should commonly find easiest ways to get rid from the problems. And there is one new thing as type that is password. POST is commonly being used for these kind of webpages, due to its security.

Figure 2: Output of the Sign-in Webpage with updated size of fieldset tag As you can see in the Listing 1 and 2 we used such a good Html tags to design a simple log-in form. The functionality of type password is to don’t show the text what we will enter in the password box. And when we are dealing with our ID and Password, so we should be alert from the hackers.

And then we used SELECT query to select two things from the database, which is user Name and Pass.

But the easiest way is to use Inline Style in this kind of situations to handle them.And we used some good colors on tags to create it more attractive.From these kind of webpages we know the importance of CSS Styles.Listing 6: Figure 4: Taking input from user as the user’s ID and Password to get log-in As you can see at this stage the webpage of is working well.Because we need a webpage which takes input from user’s ID and Password, and the main thing it should not show the user’s Password which he is giving input at the getting log-in time.

php code for validating username and password-54php code for validating username and password-68php code for validating username and password-17

When we entered the correct user’s ID and Password then press Log-in button to get log in.

One thought on “php code for validating username and password”