Jump to content
Raktim

OTP verification through Email

Recommended Posts

I watch more student ask for the PHP code of OTP verification through Email.

I think it is very good quary from student. Please help me to make this code as project. and i request W3SCHOOL  to post this code in the website.

                                                                                                                         !!!!!!     THANK YOU   !!!!!

 

Share this post


Link to post
Share on other sites

I create 3 file but i face a proublem in the 'process.php' file. This file not redirect the user to the 'otp.php' file. For this reason User can not enter the OTP that he received through Email.

Here are the code of the 3 PHP file------->

index.php

otp.php

process.php

 

Details about my code:-

'index.php' file form action page is 'process.php' -------> 'process.php' file generate a OTP and send it to User email address. -------> 'process.php' file redirect user to 'otp.php' file and user enter THE OTP there and verify the OTP.

 

Here is the link to watch which problem i face:- OTP verify through Email

please modify my code and make it correct.

                                                                           !!!!    THANK YOU    !!!!!

Edited by Raktim

Share this post


Link to post
Share on other sites

What is the problem you're having, what is it not doing that you think it should?  It's probably better to post your code here instead of uploading files, and I'm not sure all the font decoration is necessary, it makes it a little hard to read.  One issue is that your process.php files is not doing any validation at all.  You don't even check if the form was submitted before trying to send an email, even though they don't need to enter a valid email address.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×