Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Registration and Activation Script in PHP

Explorer ,
Oct 03, 2007 Oct 03, 2007
Hi,

I am creating an registration application. Prior to a successful registration, users must first activate their account from the provided email address in order to validate the provided email addresses. This application is powered by PHP script. Hoping someone could provide some concept about how this could be done and some tutorials will be appreciated. Thank you.

Regards,
Edwin
TOPICS
Server side applications
570
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 03, 2007 Oct 03, 2007
.oO(edwin@aw)

> I am creating an registration application. Prior to a successful registration,
>users must first activate their account from the provided email address in
>order to validate the provided email addresses. This application is powered by
>PHP script. Hoping someone could provide some concept about how this could be
>done and some tutorials will be appreciated. Thank you.

I can't provide code, just the idea how this is usually accomplished:

When the users registers or creates the account, a kind of a key is
generated. This can be a random string for example or an MD5 checksum of
the user name or something like that, let's take "crztgvhbjn" as an
example. This key is stored in the database along with the user data and
send to the user's email. In order to activate the account, the user has
to follow a particular link, which contains the key, e.g.

http://example.com/account/activate?key=crztgvhbjn

or (nicer URL)

http://example.com/account/activate/crztgvhbjn

Whatever. Then the script just has to check that the submitted key is
valid and activate the account.

Micha
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 03, 2007 Oct 03, 2007
Yeah, but how do you do that?? That is what I was asking yesterday. PayPal generates my users passwords and usernames, but I need to write the activation script too
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 03, 2007 Oct 03, 2007
LATEST
Thanks Micha for the overview. It is simple and clear. Meantime, I found a tutorial which I think can help me as well as nosnow_here. Check this out http://www.tutorialcode.com/php/registration-script/. I personally have not try it yet, because I am still busy with the layout design. But from the comments, many visitors claimed that the tutorial works. I will give it a trial later.

Edwin
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines