This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Minified Indian-States-and-Districts-PHP-Array.php | |
// https://gist.github.com/josephilipraja/de1d4aa351f8dd75f3e486cd47fe9881 | |
$IndianStates = ['AN'=>['name'=>'Andaman and Nicobar Island (UT)','districts'=>['Nicobar','North and Middle Andaman','South Andaman'],],'AP'=>['name'=>'Andhra Pradesh','districts'=>['Anantapur','Chittoor','East Godavari','Guntur','Krishna','Kurnool','Prakasam','Srikakulam','Sri Potti Sriramulu Nellore','Visakhapatnam','Vizianagaram','West Godavari','YSR District,Kadapa (Cuddapah)'],],'AR'=>['name'=>'Arunachal Pradesh','districts'=>['Anjaw','Changlang','Dibang Valley','East Kameng','East Siang','Kra Daadi','Kurung Kumey','Lohit','Longding','Lower Dibang Valley','Lower Siang','Lower Subansiri','Namsai','Papum Pare','Siang','Tawang','Tirap','Upper Siang','Upper Subansiri','West Kameng','West Siang'],],'AS'=>['name'=>'Assam','districts'=>['Baksa','Barpeta','Biswanath','Bongaigaon','Cachar','Charaideo','Chirang','Darrang','Dhemaji','Dhubri','Dibrugarh','Dima Hasao (North Cachar Hil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_POST['g-recaptcha-response']) && !empty($_POST['g-recaptcha-response'])): | |
// Your site secret key obtained from Google | |
$secret = '#####################################'; | |
$grResponse = $_POST['g-recaptcha-response']; | |
// Verify with Google Servers | |
$verifyResponse = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$secret.'&response='.$grResponse); | |
$responseData = json_decode($verifyResponse); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$countryArray = array( | |
'AD'=>array('name'=>'ANDORRA','code'=>'376'), | |
'AE'=>array('name'=>'UNITED ARAB EMIRATES','code'=>'971'), | |
'AF'=>array('name'=>'AFGHANISTAN','code'=>'93'), | |
'AG'=>array('name'=>'ANTIGUA AND BARBUDA','code'=>'1268'), | |
'AI'=>array('name'=>'ANGUILLA','code'=>'1264'), | |
'AL'=>array('name'=>'ALBANIA','code'=>'355'), | |
'AM'=>array('name'=>'ARMENIA','code'=>'374'), | |
'AN'=>array('name'=>'NETHERLANDS ANTILLES','code'=>'599'), |