217 COMMENTS

    • even i had the problem with this then i figured out that you’ve got to create the database first by importing the sql file then this error will disappear inshallah.

  1. good job
    What is the step to take after downloading the files and programming Xampp ? Where should I place my php file in " How to configure XAMPP to send Mail from Localhost in PHP ?"

  2. Warning: mail(): SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. 78sm5550625pfz.211 – gsmtp in C:xampphtdocsLogin and Signup Form with Email Verification – PHPcontrollerUserData.php on line 33 (Failed while sending code)

    where the last php file should be save and with which name plz specify.

  3. Create a php file inside the HTDOCS folder with .php extension and paste the following codes in this file then put the receiver email and sender email address in the mentioned fields.

  4. Failed while sending code!
    I was trying to implement it in my hosting .But I am getting this error. But data perfectly saved in database,since I changed few necessary changes to connect with my hosting databases.Now my question is why I am facing this error?
    please help me and thanks a lot for this great tutorial.

  5. Hii,
    i have one error when i register new account it shows

    "Failed while inserting data into database!"
    i had check my database name but its correct so where is problem.
    please help me to solve this error

  6. Nice Job! But I have a problem it says "Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:xampphtdocscontrollerUserData.php on line 33" My code is the same as yours |Failed while sending code!" Can you help me?

  7. Warning: mail(): SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. 22sm22663187pfn.190 – gsmtp in C:xampphtdocsLogin and Signup Form with Email Verification – PHPcontrollerUserData.php on line 33

    what should i do sir. please help

  8. My browser is taking forever to download the source code. Infact, it is just showing "The file will start downloading in 30 seconds time", but nothing happens after the said 30 seconds.

    Another thing, do you have a tutorial on how to auto arrange popular Posts using post hits/visits, and configuring social media sharing buttons

  9. Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:XAMPP1htdocsloginformcontrollerUserData.php on line 33
    Signup Form

  10. Hi, I have been getting this errors this errors frequently "Failed while inserting data into database!"

    I think The problem is from the data_check, I have tried selecting before inserting, but unto no avail, kindly help check the code again. Thanks

  11. Warning: mail(): Failed to connect to mailserver at "localhost:8080" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:xampphtdocsTDM202grcontrollerUserData.php on line 118

  12. Warning: mail(): Failed to connect to mailserver at "localhost:8080" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:xampphtdocsTDM202grcontrollerUserData.php on line 33

  13. Hi, SUPER TY. All work fine. Can you help me with this?, Im trying put this function for encrypt the password.

    function l2j_encrypt($password){
    return base64_encode(pack("H*", sha1(utf8_encode($password))));

    I encrypt the password in (signup-user.php / new-password.php). But, I can't use the password with this encrypt here (login-user.php). TY again <3, im wait for your answer.

  14. You have to verify or compare user password with SHA because your DB passwords are encrypted and when user try to login, his/her password is in plain text so you've to compare it with SHA. I recommended do not use SHA. It can decrypt easily. Use password_hash.

  15. works perfectly. but still didn't recieve any mail. xampp is configured and all but i still didn't receive the code in my gmail. followed other's suggestion like enabling IMAP in gmail setting and less secure. still didn't recieve the code. any suggestions?

  16. Hey Bro! Nice Work!
    I want to ask that can we connect this to html site?
    Like After Complete signing up, redirect to html site? Is It Possible Or We Need PHP Site?
    please reply.
    BTW THANKS FOR AWESOME STUFF

  17. Can you please make these scripts with PDO (prepared elements)? I'm using this for my school project, and my host needs scripts with PDO.
    Thanks! Your code helped, but I'm afraid that I need to ask this little favor of yours again.

  18. Hi Coding Nepal, all your codes works so well! and it has helped along the way! But now Is there to make this like a membership system. I need your help on that.

  19. hi what does this mean?

    Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:wamp64wwwportalcontrollerUserData.php on line 33

  20. I did was change my email in the controllerUserData.php and configure xampp settings, still getting the error alert: Failed while sending code!

  21. You guys are the best pls is there any tutorial on how to create a login form/registration form that when the user enters a specific code it registers the user and will lead the user to a page where he can save files and get those files back pls help me out am a new developer and finding it difficult

  22. is there anyway to configure it to wampp server please let me know i love your coding tutorials please solve my problem

    • Hello, I’m really sorry because I haven’t used wamp so please install xampp and follow the steps for this login form.

  23. if yes please let me know the configuration, if no then what steps i need to follow , as i don’t have xampp if you need me to install it i will do it or any other solution except installation please provide i am waiting

  24. Hii please help me I am student and I am learning it.

    Querry: When I sign-up in this it’s show unable to send data into database and too many errors I am unable so solve it please help me. and Make Video on how to create My SQL database and connect database to this login, sign-up system please reply me. and make video I am waiting for you.

    • I’m really sorry for this but please make sure ads are showing on this site because your browser may have blocked the ads.

  25. your code works fine on localhost, but on live server it was showing error on signup “failed while inserting data in database”. i am using namecheap hosting where creating new database will save db name as “diamqpuj_userform” and not how i want “userform” and it saves username like that as well. i did change my connection file with db name as “diamqpuj_userform” same with username as well but still it is showing error don’t know why.

  26. hey codingNepal pls tell like if i add this page i want that after all these steps my original website opens…how to do that?

  27. Could you please show about phpmyadmin setup for this form? Like how to place otp and verification status from phpmyadmin

    • Please, read the blog properly. You don’t need to set up or create a database for this login form. I already provided a SQL file that creates a required table, columns.

  28. Hello
    first of all i will like to appreciate your work. You are doing a great and awesome job. Thank you.
    Now my question: How can remove the otp verification option form the form?

  29. Thanks a lot for the source code sir, everything is working properly but only one thing is showing error , and that is “forget password” option.
    in that after entering the email ,when i click on “continue” it shows error .
    The requested URL was not found on this server.

    Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/8.0.9 Server at localhost Port 80

    can you plz help me in solving that ?
    rest of the files are perfect

  30. Can i use this codes on my website? i will give credits at the bottom.
    I will style these forms as much as i can just i need the php codes for i know a bit php but not so much advanced php and i was looking for sth just like this

  31. Hi bro codingnepal I saw your video but I have confused because I saw two different videos of sending email messages and they’re 1:mail ()function
    2:smtp,
    So what are the difference between these two methods

LEAVE A REPLY

Please enter your comment!
Please enter your name here