![]() ![]() Import following SQL statement via phpMyAdmin or any other MySQL tool.Įcho ''.$_SESSION.'' logout.php - In this file, we will unset the user session data.Ĭreating database tableWe need to create a user table before writing our script. member.php - In this file, we will test whether the member is or not.ħ. login.php - In this file, we will test whether the email and password is correct and confirmation code is null.Ħ. confirm.php - In this file, we will set the confirmation code to null if the user click the link from his email.ĥ. register.php - In this file, we will do form validation, saving user data to database and sending email to user for confirmation.Ĥ. configdb.php - to connect the database.ģ. index.php - I write a registration form in this file.Ģ. In this tutorial I create a 7 file like below.ġ. If your website use a registration form, you need to use email verification to reduce the spam and to make sure the email supplied belongs to that member. In this tutorial I will show how to write a sign up form with email verification or confirmation in php.
0 Comments
Leave a Reply. |