Suggested articles for you:

57 thoughts on “Complete Login and Registration Application using PHP and MySQL

  1. blankMaxim

    Hello Ravi,
    Thank you for your code. It is one of the best of free codes of this kind on the Internet.
    Could you advise me on how user can add attachments to the sign-up form?

    Reply
    1. blankRavi Bandakkanavar Post author

      Hi Maxim,

      Thanks for the feedback. I am glad that it is helping you.
      The attachment part requires some extra coding so I am thinking of posting a new article on the same.

      Reply
  2. blankarisa

    hi, can i add different roles for user? for example i want to add admin and normal user. do i need to link to admin page after log in? and should i create another table in database which store admin’s information?

    Reply
    1. blankRavi Bandakkanavar Post author

      Hi Arisa,

      The role is decided at the time of registration. Either super admin decides the role or by default, everyone will have a common role, for example subscriber role. After logging in, each role will lead to a different interface (webpage).
      A common database is enough.

      Reply
  3. blankanand

    Warning: Use of undefined constant title – assumed ‘title’ (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\loginsystem\edit-profile.php on line 2

    Reply
  4. blankarisa

    hi, i try to delete “bio” element just to check whether it can function or not, apparently the data does not enter in database anymore once i delete any elements. can you tell me why?

    Reply
  5. blankarisa

    hi, i try to add “address” in the signup function but it always lead me to error. can you show me how to do it? and where i am supposed to edit

    Reply
    1. blankRavi Bandakkanavar Post author

      Add a new placeholder in form and you need to read the same key in PHP and store it into the database. Just follow any one of the existing elements of the form, you will get it.

      Reply
  6. blankcbabic

    Hi! I am trying to modify the signup.php by adding croppie.js image cropper to it. The problem is that croppie displays the final photo as base64 and thus it cannot be uploaded to the database. Any chance of adding a base 64 decoder to this application?

    Reply
      1. blankcbabic

        thank you for the response. However, I’m new to PHP and i don’t know how to do this the right way. Tried nearly all combinations of the decode without success :(

        Reply

Did it help? Would you like to express?