The data type for username, email and password will be varchar. It will also auto-increment for every new registration. The ‘id’ will be the primary key, it means that it will be unique for every registered user. The database is named ‘registration’, and the table is named ‘users’. The first step is to create a database, and then a table inside it. After this, the user is redirected to the index.php page where a welcome message and the username of the logged-in user is displayed. The register.php page asks for the desired username, email, and password of the user, and then sends the entered data into the database, once the submit button is clicked. The session variables are used to display logged in user information in PHP. These are unique for each visitor and are generally used to store user-specific information such as the username, profile picture etc, once the user logs in. After the session is complete, the session variables get destroyed. Session variables exist only while the user’s session is active. Such functionality can be created by using the session variables. In social networking websites like Facebook, Instagram, etc, the username and profile picture of the user that has logged in gets displayed in the header of the website, and that header remains constant, irrespective of the webpage the user has opened. ![]() ISRO CS Syllabus for Scientist/Engineer Exam. ![]() ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |