Jump to content

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   !!!!!


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------->





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
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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...