Welcome to WebmasterWorld Guest from 54.166.181.58

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Country code using PHP script and Javacript

     
11:32 am on Mar 9, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1088
votes: 1


Countries and phones are detected by plugin like [intl-tel-input.com ]
I have HTML like
<input type="tel" id="phone">
<input id="phonefull" name="phonenumber">
<input id="callingcode" type="hidden" name="callingcodename">

and fetched input value named callingcodename:
$("#calling_code").val($("#phone").intlTelInput("getSelectedCountryData").dialCode);
and PHP code
$_REQUEST['phonenumber']

How to get value such as country calling codes not only phone numbers?

I have to store as PHP value also the specific country as it is a separate value like $_REQUEST['callingcodename']
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members