Sending OTP SMS in PHP from localhost using textlocal

Поділитися
Вставка
  • Опубліковано 26 гру 2024

КОМЕНТАРІ •

  • @learnWebCoding
    @learnWebCoding  4 роки тому +1

    Get 10 free credits by registering on textlocal by using this link: www.textlocal.in/?tlrx=538027

    • @paulpaul3283
      @paulpaul3283 4 роки тому

      Sir cant register account i coudnt receive verification code from my mobile number

    • @mangilaljyani4649
      @mangilaljyani4649 4 роки тому

      Plz sir help me 5 mint meri. Baat suno plz mujhe koi software banwana hai aapse
      Watsapp pe baat kr lo chahe plz

    • @shekhar3018
      @shekhar3018 4 роки тому

      It works only for jio numbers not for others..

    • @theavezkhatri
      @theavezkhatri 3 роки тому +1

      it shows " Error: Invalid template " pls help.

    • @zeelbarot7199
      @zeelbarot7199 2 роки тому

      @@theavezkhatri Same here..
      Please help how to solve this Error..!??

  • @kaushleshkumar2418
    @kaushleshkumar2418 3 роки тому

    thank you , psychology is programmer does not find silly mistake quickly but other programmer who see you code and find it in few second .

  • @AG-cx1ug
    @AG-cx1ug Рік тому

    on line 14 8:57 it says $_POST['sendopt'] instead of sendotp, why does it still work? or the name is not used anywhere else?

  • @devalmodi5350
    @devalmodi5350 4 роки тому +2

    When will the otp go to the entered mobile number? The otp is going to the mobile number I have put in code and not the one entered in form.

  • @mapati661
    @mapati661 5 років тому +5

    Durgesh, Thanks for sharing knowledge. Can you help prepare new video explaining 'Textlocal PHP Class' all features with some good example. This will help most people the associated activities with Sending SMS, tracking cost, handling Errors etc. This will give close insight of 'website SMS management' which everybody would be interested.

  • @nareshsachin7967
    @nareshsachin7967 2 роки тому +1

    It shows error 80 and invalid templates. So when i try to create template its shows enter entity id or registration id so i can't able to create a templates please help me sir.

  • @manusadhan8829
    @manusadhan8829 5 років тому +2

    it showing error like this"Error: No recipients specified" whats that mean i enterd the mobile number and api key in credential.php

    • @lokeshjayachandran8662
      @lokeshjayachandran8662 5 років тому

      right now m also facing the same thing if yu know the solution please let me know????

  • @AG-cx1ug
    @AG-cx1ug Рік тому

    this sends otp to any mobile number entered right? where is the mobile number variable being stored?

  • @amanchaurasiya6238
    @amanchaurasiya6238 3 роки тому +1

    It showing invalid template
    Why ?
    Help me in this .

  • @soniyacnair1737
    @soniyacnair1737 3 роки тому +1

    When I run the code i get the message "invalid template" why it is?

  • @hambalaregen3478
    @hambalaregen3478 2 роки тому

    Why textlocal website is not available in my country Philippines??

  • @ancyea
    @ancyea 4 роки тому +2

    Thanks for this tutorial. First i got Error: Invalid login details. Then found code in help section after registering

    • @babluKumar-nc1ul
      @babluKumar-nc1ul 4 роки тому

      how did u solved , can u explain .

    • @ancyea
      @ancyea 4 роки тому +1

      first register in textlocal. Then in ur profile under help->all documentation. Go to bottom part. There is a link. Code is in there.

    • @naveshkintali1219
      @naveshkintali1219 3 роки тому

      @@ancyea where to paste that code?

  • @nibirtalukdar7814
    @nibirtalukdar7814 Рік тому

    it shows invalid template when i click send otp

  • @azadsingh3545
    @azadsingh3545 6 місяців тому

    Sir this is related to database if not? Then how to it works

  • @siddharthvasudev6841
    @siddharthvasudev6841 6 років тому +2

    U r entrng wrng num den hw d otp is generating to ur phne only????

  • @arjyochakraborty1606
    @arjyochakraborty1606 2 роки тому

    can the same be done with javascript or typescript?

  • @azadsingh3545
    @azadsingh3545 6 місяців тому

    sir this video helps me but i have a issue related to the "Error: Invalid template " pls guide to me how to solve it?

  • @NikhilPatil4u
    @NikhilPatil4u 5 років тому

    can i do same thing with session for destroy OTP after some minutes ?

  • @bindhutumma5286
    @bindhutumma5286 2 роки тому

    Hi Durgesh,Thanks for sharing your knowledge. Can you help me i am not receiving the otp’s and I am not facing any error (warnings) also.

  • @akashkadia8662
    @akashkadia8662 6 років тому +5

    Error: Invalid login details this error how can be solve

    • @raohary
      @raohary 4 роки тому

      you should have API key

  • @subhendumondal7784
    @subhendumondal7784 2 роки тому

    Is it possible from the Localhost?

  • @getasewayanaw2788
    @getasewayanaw2788 2 роки тому

    thanks for your idea but,when i run it says Error: Invalid login details

  • @clipcart6796
    @clipcart6796 3 роки тому +1

    it is showing error as INVALID TEMPLATE .

    • @priyadharshinir8434
      @priyadharshinir8434 3 роки тому +1

      Me too... How did you resolve it?

    • @clipcart6796
      @clipcart6796 3 роки тому

      @@priyadharshinir8434 BY REPLACING THIS FUNCTIONALITY WITH GMAIL SMTP

    • @aspconsultants
      @aspconsultants 3 роки тому

      @@priyadharshinir8434 i am also stuck at invalid template issue. were u able to solve it?

  • @tanveeransari4510
    @tanveeransari4510 3 роки тому

    I am not able to create sms template to send sms. Getting error saying "DLT Registeration Id required". Can you help me please

  • @swagatakar2196
    @swagatakar2196 3 роки тому

    How to make the design you have made at the beginning of the video??

  • @moalongjamir9037
    @moalongjamir9037 6 років тому +1

    Thank you Durgesh Sahani, It was a great tutorial indeed, and can you please make a video on "Forget Password" system based on this same video?? So that we can implement on this same tutorial...

  • @liftedup299
    @liftedup299 4 роки тому

    Can it work for people in other countries?

  • @himanisengar1382
    @himanisengar1382 5 років тому +1

    i am hitting from the postman and i am getting an error, Error: Invalid login details plz provide me the solution to solve it

  • @mohammedhafeez8003
    @mohammedhafeez8003 5 років тому

    after verifying mobile number must enter into database can u help me with this

  • @rajusinghrajput4442
    @rajusinghrajput4442 4 роки тому

    Sir how solve this error in textlocal
    Message can only be sent between 9am to 9 pm at restricted by TRAI NCCP regulation

  • @eyzaathallaalfaeyza4186
    @eyzaathallaalfaeyza4186 5 років тому +1

    How to make this code send a sms and email too?

  • @AkashKumar-ci3oj
    @AkashKumar-ci3oj 6 років тому

    Supperb Bro What a tutorial It Worked Properly Loved Your Your video Please Upload such more content

  • @jayshreek2365
    @jayshreek2365 2 роки тому

    OTP is not getting verified ... what to do now

  • @61174shyam
    @61174shyam 6 років тому

    Why I cannot use any any other value for $sender variable in the place of "TXTLCL"?

  • @rutvinathvani4991
    @rutvinathvani4991 6 років тому +8

    Error: Invalid login details

  • @martinemmanual1094
    @martinemmanual1094 3 роки тому +1

    Hi bro such a wonderful video can u tell me how to redirect to other page with code

    • @vaishnavimogal2977
      @vaishnavimogal2977 2 роки тому +1

      Hey i am getting error as a invalid template.
      Can u help me

    • @KartikSaroha-me2pf
      @KartikSaroha-me2pf Рік тому

      @@vaishnavimogal2977 I am getting same error, please help me

  • @rihanalilydesilva6487
    @rihanalilydesilva6487 4 роки тому

    Can we send an encrypted image as an OTP through this method (using mms instead of sms)? There the OTP is hidden in the image. Can we use this codes and text local with encryption algorithm?

  • @lokeshwarisaikumari4239
    @lokeshwarisaikumari4239 Рік тому

    Error:invalid template what to do bro

  • @asthachaturvedi1615
    @asthachaturvedi1615 4 роки тому

    sir otp is not verify.why

  • @tusharsutar3612
    @tusharsutar3612 6 років тому

    Durgesh Sahani sir , if i want to send otp to any one of gmail then what should do changes in my php files, plz help me sir..

  • @rohanjoshi2954
    @rohanjoshi2954 5 років тому

    i have created an HTML form, how do i retrieve mobile number the user will enter, and what did you say about the mobile number i didnt get that

  • @manimaran.r7639
    @manimaran.r7639 3 роки тому

    it is not working localhost why ?

  • @sauravyadav3213
    @sauravyadav3213 6 років тому

    sir I am not able to get 10 free messages through text local why? can u help me please.

  • @arafatkazi1728
    @arafatkazi1728 5 років тому +1

    Textlocal failed to send verification code in my phone number !! Can i use your api key ??

  • @jaydippandey8409
    @jaydippandey8409 8 місяців тому

    i have facing error invalid templet please give me solution of it

  • @arulshiva8300
    @arulshiva8300 Рік тому

    Error: Invalid template if i run the code it show error {Error: Invalid template}
    ple someone help to fix the problem

  • @aryakdangol50
    @aryakdangol50 4 роки тому

    Everytime I press submit the page refreshes and hence the otp is sent twice

  • @farukweb
    @farukweb 3 роки тому

    can I use from Bangladesh?

  • @yashasvirattan5884
    @yashasvirattan5884 3 роки тому

    how did u make localhost connected to internet services? I am having trouble understanding that because otp is not coming to my smartphone but code is writing sent successfully. Then i ran the whole thing without network, in that too it is giving otp sent successfully.
    My point is that whether internet or not otp services are accessible to localhost, its just the frontend part working!!

    • @mahanta9611
      @mahanta9611 2 роки тому +1

      That Is not a localhost , it his website you have to host In website

  • @fm_fitness_model
    @fm_fitness_model 5 років тому

    pleas reply that how to numbers and name store data in MYSQL...

  • @rajdhanki8740
    @rajdhanki8740 6 років тому

    if i want to send otp to other mobile number sir then what do i have to change in credential.php and and index.php file and i want to set mobile number field if i put another mobile number it will send otp to that particular other number not in same our number sir please help

  • @vijayjoshi6935
    @vijayjoshi6935 6 років тому

    sir otp you send is valid upto how many minutes???

  • @kkashkash7017
    @kkashkash7017 5 років тому

    how much per SMS will it cost?

  • @sivakrishnan9226
    @sivakrishnan9226 6 років тому

    Hi guys index.php $number = array( Your mobile number or Post number) please replace and check

  • @Robinsingh-dd1zz
    @Robinsingh-dd1zz 5 років тому

    It works well, Thanks for the tutorial

  • @rajdhanki8740
    @rajdhanki8740 6 років тому +3

    This is working 100% sir and thank u so much

    • @mmcreativevlogs2093
      @mmcreativevlogs2093 6 років тому

      can u give me the code plz

    • @rajdhanki8740
      @rajdhanki8740 6 років тому

      +Regala manikantha follow the instructions given by Sir step by step it will work I m not providing code

    • @RoundPen
      @RoundPen 6 років тому

      SAME WITH ME PLEASE PROVIDE THANK YOU
      rthrsim@gmail.com

    • @bikychowhan4997
      @bikychowhan4997 6 років тому

      can u giv eme the code plz

    • @suhasgalat9609
      @suhasgalat9609 5 років тому

      @@rajdhanki8740 i think so this is fake review

  • @launchwithabhi
    @launchwithabhi 6 років тому

    Hello .. can you please help me . I want to accept user input nos and it shows error in $_POST . So please help me regarding this.

  • @chibislife
    @chibislife 6 років тому

    How about if you want an unlimited sms?

  • @webquicks102
    @webquicks102 5 років тому

    sir please show , how to get our websites contact form details on mobile as a text message.

  • @vikasgowda8716
    @vikasgowda8716 6 років тому +3

    yea bro where is the main script ping it in description pls

  • @ENTERTAINMENTUPDATE16
    @ENTERTAINMENTUPDATE16 6 років тому

    i used "TXTLCL", now it is working but i want to use my sender name. How can i use it?

  • @lovekumargupta8851
    @lovekumargupta8851 2 роки тому

    This doesn't work at all, dlt error

  • @personal_Finance2
    @personal_Finance2 6 років тому

    code not working , Error: No recipients specified,

  • @1729rajeev
    @1729rajeev 6 років тому

    Failed to connect to the Textlocal service: Could not resolve host: api.textlocal.in. how to resolve it?

  • @theavezkhatri
    @theavezkhatri 3 роки тому

    it shows " Error: Invalid template " pls help.

  • @nchannel2293
    @nchannel2293 5 років тому

    Will it work in Bangladesh? Coz you r using India's bulk SMS platform

    • @learnWebCoding
      @learnWebCoding  5 років тому +1

      I am not sure, please check their website, or use other provider. Logic for creating otp and sending will be same.

  • @SumanSingh-rp1wd
    @SumanSingh-rp1wd 6 років тому +2

    show Error: Invalid login details

    • @designingworld1412
      @designingworld1412 5 років тому

      Download this files first api.textlocal.in/wrappers/php-in.zip
      than creat account on textlocal.in
      than try

  • @VivekKumar-dg2wn
    @VivekKumar-dg2wn 3 роки тому

    Doesn't work I got error message invalid template

    • @mohammedsameer4712
      @mohammedsameer4712 3 роки тому

      if u found a soln plz help me

    • @prasanthkc-md2gq
      @prasanthkc-md2gq 3 роки тому

      @@mohammedsameer4712 did you find that solution bro ?

    • @prasanthkc-md2gq
      @prasanthkc-md2gq 3 роки тому

      @@mohammedsameer4712 please help me to solve

    • @mohammedsameer4712
      @mohammedsameer4712 3 роки тому

      @@prasanthkc-md2gq no i havent found soln and gone with a different project

  • @examzone0
    @examzone0 4 роки тому

    Sir mere me httprequest class not found error aa rha h

  • @farhanfiyoore1879
    @farhanfiyoore1879 3 роки тому

    Error: No recipients specified please help me.

  • @samimakhtar3586
    @samimakhtar3586 6 років тому

    but OTP is showing browser " right click inspect element,APPLICATION,COOKIE" option how to hide this???

    • @harshitpandey470
      @harshitpandey470 6 років тому

      don't save it in cookie...for verifying purpose save it in a global variable.

  • @akhilanair196
    @akhilanair196 4 роки тому

    Notice: Undefined index: otp in D:\xampp\htdocs\trial\index.php on line 283 ..PLEASE SOLVE THIS ERROR

  • @asthachaturvedi1615
    @asthachaturvedi1615 4 роки тому

    sir jo aapne mobile daala tha usse nahi ho rha

  • @faizankhan5877
    @faizankhan5877 6 років тому

    Fantastic video..Thanks for it

  • @arush498
    @arush498 5 років тому

    Can you share Source code for above project on your videos or blog share it

  • @alpeshkevadiya5585
    @alpeshkevadiya5585 6 років тому

    hi
    that will be send sms to only number enter you mobile do not mobile send and how to any mobile number rong that will sms mobile number rong caret mobile number enter

  • @vaibhavbahuguna137
    @vaibhavbahuguna137 6 років тому

    could you please make video on msg91 integration on wordpress using codes or any other method.Please sir .

  • @vikasjaiswal4911
    @vikasjaiswal4911 5 років тому +1

    thank you so much....it worked very well

    • @learnWebCoding
      @learnWebCoding  5 років тому

      Your welcome!

    • @swatisandanshiv6687
      @swatisandanshiv6687 5 років тому

      Hey plzz share me d code.. I really need that
      swatisandanshiv@gmail.com

    • @simpleinc2065
      @simpleinc2065 2 роки тому

      i got error invalid template what to do ? please help

  • @sindhuchitra8627
    @sindhuchitra8627 3 роки тому

    I'm getting Invalid template error. Can anyone help me solving this

    • @aspconsultants
      @aspconsultants 3 роки тому

      invalid templater issue? where u able to solve,,.. I am also stuck on that

    • @lavishjain536
      @lavishjain536 2 роки тому

      @@aspconsultants did you get the solution please help its urgent

    • @aspconsultants
      @aspconsultants 2 роки тому

      @@lavishjain536 yeah it started working and fixed it

  • @ahsankhatri294
    @ahsankhatri294 5 років тому

    Sir its work in Pakistan??

  • @bhushangite17
    @bhushangite17 4 роки тому

    It's only take jio numbers not others. it throws errors

  • @arunasokan6048
    @arunasokan6048 4 роки тому

    i am getting an error bro "ERROR:No valid numbers specified" Kindly help

  • @shivatejagoud3374
    @shivatejagoud3374 5 років тому

    Well,It is working perfectly.

    • @rupeshwani8085
      @rupeshwani8085 5 років тому

      will you please send me the files as soon as possible...please

  • @mitalgavit5493
    @mitalgavit5493 6 років тому

    this is not working ..it just show the query only . i m not getting any otp.. plz put right code

    • @VinayKumar-ed4sy
      @VinayKumar-ed4sy 6 років тому

      follow the instructions guided by tutor its wrkng for me 100 %

  • @sumeetmalviya7832
    @sumeetmalviya7832 6 років тому

    Where is the form data and mobile number saved.

  • @maheshmishra9454
    @maheshmishra9454 6 років тому

    I am getting error: failed to connect to the Textlocal service:api.textlocal.in. ... can u explain about the error?

    • @AhmadRaza-pw3jq
      @AhmadRaza-pw3jq 5 років тому

      Your internet is disconnect, then connect and try.

  • @su-1337
    @su-1337 5 років тому

    Invalid Template should i request the $message as new template

  • @intazulhoque7508
    @intazulhoque7508 Рік тому

    Error : invalid template plz help

  • @swapnilirnak6387
    @swapnilirnak6387 6 років тому +1

    Thanks Bhai.....but sabhi number ko ye OTP send nhi ho raha...... it shows "Error: No valid numbers specified" Like that Error msg

  • @mediatorxavier5116
    @mediatorxavier5116 3 роки тому

    Sir its showing "Error: invalid template" sir please give this solution

    • @simpleinc2065
      @simpleinc2065 2 роки тому

      did you get a solution ?

    • @lavishjain536
      @lavishjain536 2 роки тому

      did you get the solution please help its urgent

    • @lavishjain536
      @lavishjain536 2 роки тому

      @@simpleinc2065 did you get the solution please help its urgent

  • @tejashrijadhav9265
    @tejashrijadhav9265 5 років тому

    API key is not generated

  • @bhavanigattikoppula2077
    @bhavanigattikoppula2077 6 років тому +1

    otp not generating.

  • @nirmalkumarsharma7290
    @nirmalkumarsharma7290 6 років тому

    i put same code but its showing
    Fatal error: Call to undefined function curl_init() in D:\xampp\htdocs\unique\admin\textlocal.class.php on line 102

    • @lurdesrodrigues9586
      @lurdesrodrigues9586 5 років тому

      In your localhost it will not work, since your PC is inside a private network.

  • @ENTERTAINMENTUPDATE16
    @ENTERTAINMENTUPDATE16 6 років тому

    i got an error "Invalid sender name", i have tried many names in many way still it is showing. Please help

  • @naveshkintali1219
    @naveshkintali1219 3 роки тому

    it says invalid login details

  • @shubhamchhetri2416
    @shubhamchhetri2416 4 роки тому

    can anyone help me with: Error: Invalid login details.

  • @rohitkumar98153
    @rohitkumar98153 4 роки тому

    Really Helpful

    • @bindhutumma5286
      @bindhutumma5286 2 роки тому

      Hi Rohith will you please help me on this task .Because I have written the code but I am not receiving the otp.

  • @omri620
    @omri620 5 років тому

    Error: Invalid login details
    why?

    • @learnWebCoding
      @learnWebCoding  5 років тому

      Your API_KEY might be wrong. Please check it again.

  • @ss2851
    @ss2851 5 років тому

    Is it safe to save OTP in cookie?

    • @learnWebCoding
      @learnWebCoding  5 років тому

      No it's not safe, this tutoring is for understanding the concepts of otp system. Instead of cookies you can use session, database, or any medium which you are using for storing your data. Hope your doubt get clarified.
      Thanks

    • @ss2851
      @ss2851 5 років тому

      @@learnWebCoding Yaa I understand.
      Thanks for your reply!

  • @laumeileng926
    @laumeileng926 6 років тому

    bro, can you make video how someone get code from mobile to email.