Tip 1: How to make the registration of users on the site

Register

need to open certain content to a limited number of users , monitor comments spammers give the possibility to make purchases in the online store. Registration on site, you can create, having programming skills or using ready code.
Guide
1
create a registration mechanism manually on php.Make the registration form on the home page (index.php) using the markup language html.Put a link to a php page with the registration data (for example, under the name registration.php).By clicking "Register", the user will get to the page where he will have to enter your details in the form below.Login, password, email address will go to the handler that you created in php.After the treatment, they will be recorded in the database, and registration is completed.
2
encrypted password is stored in the database mysql.Create a new table in the database, for example, under the name usersdata (data users ).Create a file bd.php, by means of which will be used to connect to the database.Contact this
file needs to be written on the pages before the html code for.
3
Make the home page (and others) form the entrance to the fields for entering username and password.When the user enters data and clicks "Enter" button, the information will be sent to the file login.php for processing and verification.If everything is correct, it is written in the cookie.Either session is started, and the data will be stored in the browser to exit or until you close your browser.For user access to the site will meet the file exit.php.When you click "Exit" stop session or erased cookie.
4
If you are not yet strong in the knowledge of programming languages ​​and markup all you need - it's to get ready code and place it where you want.You can it somewhere to take, or use forms designer, such as a service MyTaskHelper.ru.In this case, the programming skills are required.Sign up, create the shape you with the right fields, give them your name, customize them to your liking.Apply for appearance (design) form with help of "Widgets".Service will generate form code, copy it to the desired Web page.

Tip 2: How to register on the site

To date, registration for the resource gives users more privileges than unregistered the resource person.In addition to browsing, the user can engage in discussions and share interesting information with other visitors.
How to register on the site
you need
  • Mailbox, internet access.
Guide
1
At the initial stage you have to agree with the general rules and regulations of the site.We recommend that you read them carefully.It is clear that too much text takes a lot of time reading it, but in a way, in the future you will be able to avoid possible excesses.Once you agree with the rules of the user agreement, you will be redirected to the registration page.
2
Upon registration you will need to choose a name and password by which you will later go to this site.In addition, you also need to specify the address of the current e-mail address to which the completion of registration will link to confirm your account.You can also specify at this stage of their contacts: Skype number ICQ (to reflect the information that you would like to share with other users of the resource).
3
Once you enter personal data, click on "Register".After 2-3 minutes, check your mailbox that you have specified when registering for the presence of a letter with a link, clicking on which you will be able to activate your account.Only after successful activation of your account, you can log in using your username and password.
recommend coming up with complex passwords, to eliminate the possibility of hacking your account.
Helpful Hint
If you use a CMS (content management system, for example, Joomla), there to work with the forms have special modules.

0
0