D
D
dimi_gor2017-06-01 10:37:24
PHP
dimi_gor, 2017-06-01 10:37:24

How to verify email address in php + mysql?

It is necessary to send a link to the mail in php + mysql, after clicking on which the user account is confirmed

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel, 2017-06-01
@PavelFokeev

When registering, you create a field in mysql in which you store a unique e-mail address confirmation key, and send a link (or just this key) to the mail and redirect the user to the page where you need to enter it. When you enter the correct key (or when you follow the link from the letter, check the GET parameter and compare it with
the entry in mysql) - update the entry in the database, indicating that the user has successfully confirmed the registration.

S
Semyon Beloglazov, 2017-06-01
@Batlab

Additionally, I would also like to bind to ip, otherwise the option above is completely correct

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question