Validating data from database php
But before we enter any data to this webpage on Figure 3. One profile page and other ID and password validation.For checking or validating the ID and Password we need to save ID and Password to the database, for this we need two more things as a database and a table. Listing 4: creating table So we completed the requirements of the database. In which we will get the data and check it if the ID and Password are available in the database and entered correct then the user will be able to online to the user profile page.
In the last we used an ID for button and we applied CSS styles on it.There are some new CSS styles as font-weight, font-size which all about to font (text).Figure 3: Sign-in webpage after applying CSS Style (linking the webpage) As you can see the change on the webpage after linking the webpage.But there is a problem, as we used the fieldset tag and the fieldset tag size is being a problem on this page.So we should change the width of the fieldset tag size.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.
I have a simple way to use the Inline Style of CSS to get rid from this problem. Listing 2: Inline CSS Style So let’s we check the output of the webpage after writing the inline CSS style in the fieldset tag as you can see it in the Listing 2.
As I told you that it’s an easy way to use Inline Style.
Then we used an there function of PHP programming Language that is mysql_fetch_array().
This will fetch all data according to the SELECT query.
First of all we need to design the Sign-In webpage. There is username and password form boxes and a button to sign in to the profile page of user.