Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Using CodeIgniter
General Help
how to send otp to two mobile numbers?
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
how to send otp to two mobile numbers?
kvanaraj
Member
Posts:
175
Threads:
102
Joined:
May 2018
Reputation:
-7
#1
06-07-2019, 02:08 AM
hai
I want to send otp in to two mobile numbers. Is it possible to send?
My otp like '12345678';
for first mobile number: first 4 digit (1234)
second mobile number : last 4 digit (5678)
Need suggestion.
Reply
Vicky1818
Newbie
Posts:
1
Threads:
0
Joined:
Jun 2019
Reputation:
0
#2
06-07-2019, 02:44 AM
You can put conditions when OTP ll generate.
For example,
if($mobile_no = "9033xxxxxxx"){
$otp_num = 1234;
}elseif($mobile_no = "800xxxxxxx"){
$otp_num = 5678;
}else{
$otp_num = rand(1000,9999);
}
Hope this example will help you.
Reply
badrinathjanghel_gmail.com
Newbie
Posts:
1
Threads:
0
Joined:
Jun 2019
Reputation:
0
#3
06-07-2019, 03:01 AM
Yes,
of course you can send otp on two mobile numbers.
In place of doing this you can also send first OTP to mobile number and another OTP to email-id.
Reply
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB