Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

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: 1063
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:
and PHP code

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