PHP OTP Login Verification Script

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2019
  • In this video I will explain you about how to implement PHP OTP login verification script in localhost. OTP is an effective way of validating users.
    In this script I am using sendgrid SMTP for sending otp emails.
    For any queries and clarification feel free to comment.
    For Best Hosting Plan Check:- 91weblessons.com/domain_hosting
    Learn PHP Online with Me:- bit.ly/LearnPHPOnline
    To help and support me(Donate Me):- bit.ly/ProgrammingWithVishalD...
    Download source code from here bit.ly/2NCvz2W
    #PHPScript #PHPOTP #PHPLogin
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ✅Subscribe: / @programmingwithvishal
    I am a Digital Marketer by passion and a Developer by profession. With experience and expertise spanning around 10 years, in the Digital space.
    Good amount of experience in development of web applications using PHP, .Net, JavaScript Library’s, Frameworks, CMS, API’s, Reporting tools and Payment Gateways. Skilled in digital viral marketing, technology innovation's, brand building and all phases of the Web development lifecycle with an expert in translating business requirements into technical solutions and fanatical about quality, usability, security, and scalability. Dealing with and resolving problems and issues which arise.

ความคิดเห็น • 276

  • @ProgrammingwithVishal
    @ProgrammingwithVishal  4 ปีที่แล้ว +10

    Guys if you are facing issue with Sendgrid SMTP try this GMAIL SMTP. Watch this th-cam.com/video/k7LSk9hOnJk/w-d-xo.html

    • @ramaaryan9849
      @ramaaryan9849 3 ปีที่แล้ว +1

      thankyou so much for such an amazing video,,,,nd sir where r u from

    • @cashbackloan6618
      @cashbackloan6618 3 ปีที่แล้ว +1

      @@ramaaryan9849 his name is vishal Gupta and he from Sarita vihar, Delhi.

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  3 ปีที่แล้ว

      @@cashbackloan6618 Now in Noida

    • @preetsandhu422
      @preetsandhu422 ปีที่แล้ว

      Hlo bhai data base me id kaise exit kregi i want my google sheet list gmail ids ki ek database ki tra kaam kre

    • @onlinecoder01
      @onlinecoder01 ปีที่แล้ว

      Bro aapko shortcut Mila kya

  • @saurabhtitus8267
    @saurabhtitus8267 3 ปีที่แล้ว +1

    Vishal sir you are grate for those students those wants to learn programming thanku so much sir

  • @SICTINDIA
    @SICTINDIA ปีที่แล้ว +2

    Thank you sir, your video is very useful for higher, medium and lower students

  • @rohitkumar-ts5hs
    @rohitkumar-ts5hs 3 ปีที่แล้ว

    when i click on submit , response:Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in C:\xampp\htdocs\ff\send_otp.php on line 6
    not_exist, any help, thanks

  • @sundar6492
    @sundar6492 3 ปีที่แล้ว +1

    Thanks a lot , It really helped me , Pls Post more videos on Basics of PHP , Better if subtitle Available , Thanks Once Again

  • @saurabhmahawar
    @saurabhmahawar 4 ปีที่แล้ว +5

    Amazing way of teaching programming. Great👍👍

  • @KshitizAgain
    @KshitizAgain 4 ปีที่แล้ว +2

    Thanks! It helped for my online old goods selling website project🙂subscribed your channel and liked the video

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      Glad it helped!

    • @desuvyshnavi9327
      @desuvyshnavi9327 2 ปีที่แล้ว

      Can you pls once explain me how it worked because I am doing the same project I stucked at this point... it's urgent ...

  • @myho5694
    @myho5694 3 ปีที่แล้ว +2

    hi Vishal! i using your code. but i want to comparing the value in database with the value in input when have someone input the otp. if they give input the value is equal with the value in database that's mean they can go next step. how can i set it up? thanks

  • @ratishal0308
    @ratishal0308 ปีที่แล้ว +1

    OTP received in the database but not on the email id and the page is not redirected to the OTP verification page

  • @user-di2yr2bo7c
    @user-di2yr2bo7c 4 ปีที่แล้ว +1

    Sir aap jese teacher ko m kab s search kr rha tha jo mujhe meri language m samjha sake
    Sir mene aapka channel subscribe kr liya h m aapke video ko follow or like krta rahunga
    thanx for share simple way

  • @motivmood_859
    @motivmood_859 2 ปีที่แล้ว

    after doing all things i'm not getting otp in my email n this showing invalid address : $emailyes ......why? my mail apssword are ri8 then why not working?

  • @buddytime2249
    @buddytime2249 3 ปีที่แล้ว

    Vishal sir please help me I am trying to create a function but my function wasn't work the way I want...example of what I am trying to do example:- I have two basket, In first basket there are 5 mangoes and in second basket there are 10 mangoes. if require mangoes is less than 5 then pick from first basket else if require mangoes are more than 5 then pick 5 from first basket and pick remain mangoes from second basket.i am stuck and dont know how to do please help me or make one video

  • @globalnewshindisen
    @globalnewshindisen 2 ปีที่แล้ว

    flutter code me sirf mobile number insert kare or 000webhost (phpmyadmin) pe save ho or OTP wpas mobile number pe aaye....
    flutter se mobile number 000webhost pe save ho bhi rhe hai but opt nhi aa rhe hai...

  • @Neha-Neha
    @Neha-Neha 4 ปีที่แล้ว +3

    Really it helped me a lot.after completing my task I was like ohh lovely .
    Thanks a lot

  • @heyizsheanny
    @heyizsheanny ปีที่แล้ว +1

    Sir , I have tried to run the source code but it's showing in SMTP file I don't know how to fix please guide me .

  • @livetrial9684
    @livetrial9684 ปีที่แล้ว

    Please give me solution below mention function is not working. OTP is sent successfully to mysql and mail but hidden box in not viewed.
    success:function(result){
    if(result == 'yes'){
    jQuery('.second_box').show();
    jQuery('.first_box').hide();
    }

  • @niteshgupta3525
    @niteshgupta3525 ปีที่แล้ว +1

    This is 100% working , but i modify as per my way , i used phpmailer instead of send-grid

  • @xlr8tanmay
    @xlr8tanmay 3 ปีที่แล้ว +1

    Can we use username instead of email? And then connect it to the database mail through a php script

  • @kowsalya2740
    @kowsalya2740 3 ปีที่แล้ว +12

    Hello sir, i am from tamilnadu.. Can u please a upcoming tutorial in english.. Or subtitle.. It will really helped lot. Thanks from india♥️

    • @priyansh5233
      @priyansh5233 3 ปีที่แล้ว

      He is from Delhi, India, and he is speaking Hindi.

    • @Maniq_0
      @Maniq_0 3 ปีที่แล้ว +2

      Bro i am also tamil

    • @priyansh5233
      @priyansh5233 2 ปีที่แล้ว

      @@hiheven4656 Bro? I was replying to somebody else who deleted their comment.

    • @hiheven4656
      @hiheven4656 2 ปีที่แล้ว +1

      @@priyansh5233 ooh okay! really sry bro!!

    • @praveenshiva8658
      @praveenshiva8658 ปีที่แล้ว

      I am also tamilnadu 💛🥰

  • @moviewala9170
    @moviewala9170 3 ปีที่แล้ว

    No doubt.
    You are the best!!

  • @AnirudhSoni
    @AnirudhSoni 2 ปีที่แล้ว

    tum bahut badhiya kaam karta hai vishal bhai

  • @samratmani880
    @samratmani880 ปีที่แล้ว

    SMTP -> ERROR : failed to connect to server: network is unreachable (101)
    Called Mail() without being connect.
    Kindly help me with this error 🙏 😔

  • @peacebuilder3164
    @peacebuilder3164 3 ปีที่แล้ว

    This is great. I received otp to my mail but I strucked with an issue. The page is not redirecting to dashboard.php. What to do sir? I am using xampp. Help me sir

  • @kishoresamal7191
    @kishoresamal7191 ปีที่แล้ว

    Echo yes not working ... In console it comes with yes as well as all smtp messages

  • @smebajar6024
    @smebajar6024 3 ปีที่แล้ว

    Sir.
    Agar mujhe isi code me User ka session create karne k baad main chahte hu ki agar user ki kuch aur bhi detail hamare database me hai wo yaha display ho jae. Wo kaise hoga.
    Please help

  • @businessidea3380
    @businessidea3380 2 ปีที่แล้ว

    Aapka videos me advanced script use hone laga hai...

  • @romiapaul3996
    @romiapaul3996 3 ปีที่แล้ว

    thank you so much sir for this video

  • @sonaliverma1562
    @sonaliverma1562 ปีที่แล้ว

    Thankyou so much sir

  • @kishorindhe4891
    @kishorindhe4891 4 ปีที่แล้ว +1

    Such a good explanation sir

  • @rajabhishek4973
    @rajabhishek4973 4 ปีที่แล้ว

    Nice sir please make a video on payment gateway and QR code php script

  • @varadkahakarkar1953
    @varadkahakarkar1953 3 ปีที่แล้ว +1

    hello sir great video but i have one query in my case otp is generated but it only storing in database i am not getting that otp on mail can u please help

  • @priyankaa5418
    @priyankaa5418 ปีที่แล้ว

    when i click on send otp btn ....i received otp .. but otp text box not showing

  • @akshayakumarpallai7130
    @akshayakumarpallai7130 3 ปีที่แล้ว

    Thank you for this

  • @abhigyanaishwaryamishra5670
    @abhigyanaishwaryamishra5670 4 ปีที่แล้ว

    I have uploaded files in local server otp is saved in databse when i press send otp button but its not redirected to check otp button and also mail is also not received

  • @solomanvarghese6481
    @solomanvarghese6481 3 ปีที่แล้ว

    What we do if the email goes to spam folder ?

  • @PlatinumSagar
    @PlatinumSagar 2 ปีที่แล้ว

    Thank you sir.

  • @kingpatricktorreliza3854
    @kingpatricktorreliza3854 2 ปีที่แล้ว

    when i click send otp nothing happen
    how to solve that problem

  • @alaabidalhussain2710
    @alaabidalhussain2710 2 ปีที่แล้ว

    Bro can we send the otp to mobile number as well with this script. Kindly assist

  • @usama5911
    @usama5911 5 หลายเดือนก่อน

    Sir me 4 years bad dekh raha thanks for this mini project. Sir singup kye sath ey wala system kyse bnay gee please bata do please🙏🙏🙏
    Account create and login with email opt

  • @wasss3745
    @wasss3745 2 ปีที่แล้ว

    Im confuse where is the login_otp this file not found .

  • @susilkumarbehera1681
    @susilkumarbehera1681 3 ปีที่แล้ว

    Sir why u store email in database, you have to create a video to submit email with OTP

  • @ashwinivishwakarma243
    @ashwinivishwakarma243 ปีที่แล้ว

    Sir, link given to download is having smtp files only

  • @vineetbawa86
    @vineetbawa86 4 ปีที่แล้ว +2

    its sooo easy when yo explain .. !!

  • @bibinjoy6248
    @bibinjoy6248 3 ปีที่แล้ว +1

    Nice and simple presentation

  • @muveenhasan6942
    @muveenhasan6942 2 ปีที่แล้ว

    Sir email ki jaga nunber se bhi kiya hum otp verify kr sakte h

  • @shivprakashsharma3690
    @shivprakashsharma3690 2 ปีที่แล้ว

    You are great sir

  • @entertainingcritics7495
    @entertainingcritics7495 2 ปีที่แล้ว

    Sir kya same chij laravel me register login k sath otp generate ksath bata sakte h

  • @sunildogra3975
    @sunildogra3975 ปีที่แล้ว

    Sir, thank you for the php code for otp verification, Kindly help as i am receiving error as Please enter valid email though i have entered a valid email id and saved the same in the database

  • @ITHUBWITHMULTICOURSE898
    @ITHUBWITHMULTICOURSE898 2 ปีที่แล้ว

    sir ye code work nhi ker rha ind fill kerne per otp frame nhi a rha

  • @yashashreewarang6294
    @yashashreewarang6294 4 ปีที่แล้ว

    When I click on send otp, second box don't open and get error in my console saying - uncheck runtime.lastError: The message port closed before a response was received.

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      Please sent me screenshot. My email id phpvishal@gmail.com

    • @akhilanair1488
      @akhilanair1488 3 ปีที่แล้ว

      @@ProgrammingwithVishal yes sir facing the same error but i have no errors.but the second box doesnt get redirected

  • @laltumandal997
    @laltumandal997 2 ปีที่แล้ว

    Ek video Otp with time expiry with resend feature par banaiye
    Similar bank Ka Otp page jaisa
    Please

  • @moriomchowdhury9170
    @moriomchowdhury9170 3 ปีที่แล้ว

    In smpt.sendgrit.net what should i write

  • @nasirkhan5836
    @nasirkhan5836 3 ปีที่แล้ว

    Sir appne action= "confirmation. File ka code show nahi kiya

  • @gohardarakshan8193
    @gohardarakshan8193 4 ปีที่แล้ว

    Hello sir.. It's really very helpful video but I have a question may I ask it individual??

  • @lvgroup3861
    @lvgroup3861 4 ปีที่แล้ว +1

    excellent explanation

  • @sardorjs3647
    @sardorjs3647 4 ปีที่แล้ว +2

    Thanks for great video tutorial, there's one thing that I want to know, how to do so when we verify OTP, in database the column otp is still being his verified OTP, now it's disappearing when we verify the OTP, and do we got the method how to add one extra column named like "is_verified" with values "Yes/No". Please could you help me with it!

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      For this create a separate field "is_verified" in table. Once you generated OTP insert "No" in is_verified and after OTP verify update that is_verified to "Yes"

    • @sardorjs3647
      @sardorjs3647 4 ปีที่แล้ว

      @@ProgrammingwithVishal and what about default disappearing otp when someone is verify it. I followed what happening when we are sending otp to user and understand that it appears in database when otp is generated but when we verify this otp is disappearing. How to change it?

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว +1

      That is because in check_otp.php line number 9, after OTP verification I am updating otp to blank.

    • @sardorjs3647
      @sardorjs3647 4 ปีที่แล้ว

      @@ProgrammingwithVishal thanks it works!! Can you tell how to do is verified more details, if you will have a free time please, more code information))) please)

    • @priyansh5233
      @priyansh5233 3 ปีที่แล้ว

      @@sardorjs3647 Steps -
      1. Create a row "is_verified" in your table.
      2. Now after checking if the email exists in the database just insert "No" in that table along with the generated OTP before sending email.
      3. Now when the user enters correct OTP, update the value of "is_verified" to "Yes".

  • @R.KFilmsProduction
    @R.KFilmsProduction 3 หลายเดือนก่อน

    Thanks

  • @nilasishdas7208
    @nilasishdas7208 4 ปีที่แล้ว

    Sir, I have a query related to logout.php.... can I use season_destroy(); then use the header to the index location?

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      session_destroy() jitna bhi session hoga sab khatam Kar dega. Now assume ki apke user and admin dono ka login Kiya hai, now session_destroy() admin and user dono ka session khatam Kar dega.

    • @nilasishdas7208
      @nilasishdas7208 4 ปีที่แล้ว +1

      @@ProgrammingwithVishal thanks for a brief explanation sir, now I understand the limitation of season_destroy()in this problem.

  • @shubhradasgupta691
    @shubhradasgupta691 3 ปีที่แล้ว

    I am on (Xampp) Localhost. How can I send emails from there?

  • @dear_life_23
    @dear_life_23 2 ปีที่แล้ว

    Smtp error 535 authentication failed
    Plz help

  • @surendrasingh-ee4uw
    @surendrasingh-ee4uw 4 ปีที่แล้ว

    Sir whatsapp server pr Maine change no to change no kai bar kiya fir time 24 hours hogaya to kiya server wale dekhe sakte h esa agar maine bar bar kiya

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      Samjha nahi main aap kya boal rahe wo. Apne comment email otp ke post pe kiya hai or aap whatsapp ki baat kar rahe ho

  • @faizanjamshaid673
    @faizanjamshaid673 2 ปีที่แล้ว +1

    great sir

  • @secretcaptain7694
    @secretcaptain7694 3 ปีที่แล้ว

    Sir I think you don't need to store OTP. You just set on session and verify. It will be more secure.

  • @amitkasabe
    @amitkasabe 4 ปีที่แล้ว

    Sir can you please upload a video where user can put his all information and then that information gets stored in database and form the same database email id should be verifies

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      It's pretty simple. Use below link for insert data into table.
      th-cam.com/video/_Xur7dkDMMc/w-d-xo.html

  • @akshaychougule7170
    @akshaychougule7170 4 ปีที่แล้ว +1

    thank you sir

  • @ravisingh-rv3bx
    @ravisingh-rv3bx 3 ปีที่แล้ว

    Great sir

  • @getsetcodesg3189
    @getsetcodesg3189 3 ปีที่แล้ว

    Sir I am facing problem when I click on SEND OTP button switch nahi ho raha hai can you please help me

  • @sonakshic3431
    @sonakshic3431 3 ปีที่แล้ว

    Phone number based otp verifocation kese kre sir
    Is pr b pls bnaiye ik video

  • @arshsiddique3653
    @arshsiddique3653 4 ปีที่แล้ว

    @programming with Vishal sir make a video on how to send OTP on phone number ... please🙏🙏🙏

  • @bharathchippa3773
    @bharathchippa3773 4 ปีที่แล้ว

    when I press the send otp button its not working..please help

  • @AvinashKumar-oj8xc
    @AvinashKumar-oj8xc 4 ปีที่แล้ว

    hi Vishal,
    make a video about otp verification using mobile number in the web page verification.

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      Sure Avinash. But you can do that by yourself also. Just replace mail send coding to sms send coding. For SMS please follow my below video th-cam.com/video/kDEyqRFS0Z8/w-d-xo.html

  • @anilkumarjena9300
    @anilkumarjena9300 4 ปีที่แล้ว

    Why this code is not working in live server??

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      Go to console and check error. May be openssl is not enable on your server

  • @YogeshJangid986
    @YogeshJangid986 4 ปีที่แล้ว +3

    Hi, Thanks for uploading such great code. Can I have a database file so that I can import?

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว +3

      Thanks a lot Yogesh. Below is the link to download the source code and db file.
      bit.ly/PHPOTPLoginVerificationScript

  • @vipin8272
    @vipin8272 4 ปีที่แล้ว +1

    Great Sir but please mobile pe otp send karo then verify ek video ispe bi bna do

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว +2

      Sure will do in next video

    • @steplittle3516
      @steplittle3516 4 ปีที่แล้ว +1

      @@ProgrammingwithVishal sir abhi tak aap nai ye video uplod nahi ki

  • @KannadaET24
    @KannadaET24 4 ปีที่แล้ว

    not working bro when i click login nothing is happening

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      Because you are doing something wrong, check your browser console.

    • @techpatel18
      @techpatel18 3 ปีที่แล้ว

      @@ProgrammingwithVishal same problem sir please help

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  3 ปีที่แล้ว

      @@techpatel18 Check console. Or email me at phpvishal@gmail.com

  • @sayaklahiri8583
    @sayaklahiri8583 4 ปีที่แล้ว

    thank u sir for this course
    sir i have a question
    agar hum kisi registered aadmi ko otp vejna chahenge tow uske liye hume tow us admi ki mail ka password nehi pata hoga , and agar multiple people ko vejna chahenge then function me username and password pe kya change hoga

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      Please check th-cam.com/video/U8wyK_A66yY/w-d-xo.html

    • @sayaklahiri8583
      @sayaklahiri8583 4 ปีที่แล้ว

      @@ProgrammingwithVishal okk sir , thank u

  • @uniquethinkers8552
    @uniquethinkers8552 3 ปีที่แล้ว

    Sir mene iska code kiya or run bhi kiya lekin me jab email likhle send button pe click karta hoo to user ke table me otp to add ho jata he lekin user ko send nahi ho raha he pleas sir iska solutions bataye

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  3 ปีที่แล้ว

      Yaha pe humne sendgrid ka use kiya hai OTP ke liye, Sendgrid ne kuch changes kiye hai, Sendgrid ki jagha aap GMAIL SMTP use karo. Please follow th-cam.com/video/k7LSk9hOnJk/w-d-xo.html

  • @rks1509
    @rks1509 4 ปีที่แล้ว

    Sir, this method is great but can you provide any alternative in which we don't have to store the OTP in database and we can just check it in the script??

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว +1

      Yes, store OTP in session then

    • @rks1509
      @rks1509 4 ปีที่แล้ว

      @@ProgrammingwithVishal that's quite better than storing in database. Thanks a lot 😊👍!

    • @priyansh5233
      @priyansh5233 3 ปีที่แล้ว +1

      @@rks1509 anyone can just get the otp without having to go to their email inbox, they can just see the cookies stored on the browser/local machine.

    • @rks1509
      @rks1509 3 ปีที่แล้ว

      @@priyansh5233 yeah, you're right, I don't know what I was thinking about when this thought came into my mind, but yeah, not every user knows that we are using session variable to store it.. but yeah, u are right

  • @amanprasad2349
    @amanprasad2349 3 ปีที่แล้ว

    Sir aap pls apna code editor change kr lijiye sar dukhta hai dekh ke

  • @unrealexperton
    @unrealexperton 4 ปีที่แล้ว

    Sir can please send me data base file please I this that giving me error on 000webhost 🙏🙏🙏🙏

  • @krishnawaghmode2120
    @krishnawaghmode2120 4 ปีที่แล้ว

    greate tutorial sir
    sample project make sir How to track user over LAN connectionin php

  • @akshataghag9087
    @akshataghag9087 ปีที่แล้ว

    Can you please do this same email otp in laravel

  • @teluguexpress4314
    @teluguexpress4314 3 ปีที่แล้ว

    Sir after giving email address otp was generated in database but after it not going to second box for submitting otp
    At 17:39 in your video u also got same problem. What I have to do sir

    • @aadarshsm
      @aadarshsm 2 ปีที่แล้ว

      any solution to this???

  • @RNClass1
    @RNClass1 4 ปีที่แล้ว

    Nice sir
    सर इस तरह हम forgot password बना सकते है क्या

  • @nidhipathak3394
    @nidhipathak3394 4 ปีที่แล้ว

    I follow the steps but getting error
    Password not accepted from.server 535 authentication failed bad username and password
    Error reet failed

    • @nidhipathak3394
      @nidhipathak3394 4 ปีที่แล้ว

      Please reply

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      Nidhi, it's clearly showing your are using wrong username and password here. Also instead of SendGrid try gmail SMTP th-cam.com/video/k7LSk9hOnJk/w-d-xo.html

  • @zero_n_one3782
    @zero_n_one3782 4 ปีที่แล้ว

    Thank you its work with gmail now but not with sendgrid . However when i send the otp to email id it send to my account and also updated in my database but it wont show the submit otp box after clicking the send otp button why these happening although i used your code but only part its not working is send otp box is not appear where i can put my otp code. Please can you kindly let me know for not working properly. Thank you once again.

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      May be you are getting space in response. Just use
      result=result.trim();
      after success:function(result){

    • @zero_n_one3782
      @zero_n_one3782 4 ปีที่แล้ว

      yes i did the way you said but doesn't have any changed still same problem no display.

    • @oynxmedia
      @oynxmedia 4 ปีที่แล้ว

      th-cam.com/video/12ryCL12Vr8/w-d-xo.html

  • @shakshamagarwal7070
    @shakshamagarwal7070 4 ปีที่แล้ว

    aapne database ka name user daala or connection youtube se bnaya ??

  • @naso4383
    @naso4383 4 ปีที่แล้ว

    Thank you for the good information.
    I've done the same thing, but there's no response when I press the "send otp" button. What's the reason?

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      Is there any error or response you are getting?

    • @naso4383
      @naso4383 4 ปีที่แล้ว +1

      @@ProgrammingwithVishal
      If I press F12 button on web page to check the network part,
      "SMTP -> ERROR: Password not accepted from server: 535 Authentication failed: Bad username / password
      SMTP -> ERROR: RSET failed:
      SMTP -> NOTICE: EOF feeling checking if following the following from address failed: vishalphpyt@gmail.com : Called Mail() without being connected yes"
      The error will be confirmed.

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      Recheck your configuration setting. Also change vishalphpyt@gmail.com to your sendgrid email id

    • @naso4383
      @naso4383 4 ปีที่แล้ว

      @@ProgrammingwithVishal I modified the smtp_mailer() in the send_otp file to the id and password of my Google email. Is this the right way to do it?
      There is still no response when the "send otp" button is pressed.
      (When I enter an email that is not in the database, "Please enter valid email" is shown.)
      An error occurs with the same content as before.
      In the PHPOTPLoginVerificationScript\smtp\mailer file,
      Do I have to modify the $mail->Username, $mail->Password, $mail->SetFrom part just like the smtp_mailer() in Sent_otp?

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      Use sendgrid account details instead of Gmail account details as per the tutorial

  • @mayankkashyap1893
    @mayankkashyap1893 4 ปีที่แล้ว

    query for latest timestamp and a given condition? Please help

  • @niru1931
    @niru1931 4 ปีที่แล้ว

    This is not working sir, in send_otp it is showing undefined email variable , plz reply sir i am stuck in it for 2 days🙏🏻🙏🏻

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว

      You are doing something wrong. Give me your PC access via anydesk or teamViewer

    • @niru1931
      @niru1931 4 ปีที่แล้ว

      @@ProgrammingwithVishal okay sir

  • @ipbps6
    @ipbps6 4 ปีที่แล้ว +1

    wow best video

  • @samanjoshi9171
    @samanjoshi9171 4 ปีที่แล้ว

    sir send otp pe cklick karne ke bad submit otp ki field nahi ati otp enter karne ke liye please give me a solution

  • @guptarahul97480
    @guptarahul97480 4 ปีที่แล้ว

    gmail me agar double verificatio rahega toh mail nahi jayyega kya ? Bad Username

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  4 ปีที่แล้ว +1

      Yes, 2 step verification enable hoga toh SMTP work nahi karega

    • @guptarahul97480
      @guptarahul97480 4 ปีที่แล้ว

      @@ProgrammingwithVishal Thanks

  • @maheshbagra9403
    @maheshbagra9403 3 ปีที่แล้ว

    Sir polite request please tell him how to connect with SMTP server

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  3 ปีที่แล้ว

      Check
      th-cam.com/play/PLWCLxMult9xfY_dsYicKGcCLhlZ6YXFMh.html

  • @mayankkashyap1893
    @mayankkashyap1893 4 ปีที่แล้ว

    Bhaiya submit otp button or click krne se wo next page ko nhi jaa raha h . please help

  • @spidyreview2346
    @spidyreview2346 11 หลายเดือนก่อน

    Hello sir

  • @techpatel18
    @techpatel18 3 ปีที่แล้ว

    Sir how send otp in mobile number

  • @PagePixels
    @PagePixels 3 ปีที่แล้ว

    I can't connect my database please help me

    • @PagePixels
      @PagePixels 3 ปีที่แล้ว

      This is error log occurred [24-Nov-2020 09:47:00 UTC] PHP Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO) in /home1/sangawl6/public_html/send_otp.php on line 3
      [24-Nov-2020 09:47:00 UTC] PHP Warning: mysqli_query() expects parameter 1 to be mysqli, bool given in /home1/sangawl6/public_html/send_otp.php on line 5
      [24-Nov-2020 09:47:00 UTC] PHP Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /home1/sangawl6/public_html/send_otp.php on line 6

  • @swarajdey9035
    @swarajdey9035 3 ปีที่แล้ว

    Fatal error: Uncaught phpmailerException: Invalid address:

    • @swarajdey9035
      @swarajdey9035 3 ปีที่แล้ว

      This error came when I hosted in go daddy

    • @ProgrammingwithVishal
      @ProgrammingwithVishal  3 ปีที่แล้ว

      Yaha pe humne sendgrid ka use kiya hai OTP ke liye, Sendgrid ne kuch changes kiye hai, Sendgrid ki jagha aap GMAIL SMTP use karo. Please follow th-cam.com/video/k7LSk9hOnJk/w-d-xo.html

  • @mageshk900
    @mageshk900 ปีที่แล้ว

    :Undefined index: email in C:\xampp\htdocs\otp\send_otp.php on line 4
    not_exist
    Kindly Help me