Create a List of Countries with a Checkbox(more details in the description)
$10-30 USD
Paid on delivery
I'd like to create a MySQL table that has country codes in it+ an HTML checkbox list of countries. Once I check a box or more, then click save, I'd like an array of the checked country codes to be created or updated(implode using '|' instead of ',').
e.g:
I checked United States and United Kingdom, then I clicked save.
$array's value should be: US|GB
So this PHP code below can find the $array every time without having to change it manually.
require_once('[url removed, login to view]');
$geoplugin = new geoPlugin();
$geoplugin->locate();
if(! empty($var_countryCode)){
$var_countryCode = $geoplugin->countryCode;
if( preg_match('@($array)@', $var_countryCode) ){
echo "A warm welcome to our visitors from United States or United Kingdom";
}
else {
echo "Hello, everyone!";
In addition to that, I'd like a "Select all countries" button and a "Select none" button.
Project ID: #9824150
About the project
10 freelancers are bidding on average $46 for this job
Hello Good Day I can do this project within a day. You can see my past projects. I have done a lot of similar project. Looking forward to hear from you. Thanks Rinsad
I am very expirienced developer with more than 10 years on web. Expert for jquery, ajax, javascript. Backend PHP and ASP.NET. PHP frameworks: CodeIgniter
Hi, Give the project to myself to see how we value the client and how the satisfaction will be. I can be too sure on the highly satisfaction and timely delivery. Thanks ! Regards Yuga
I have 3+years experience in core php. I think I can finish this by one day. I have 2+ years experience in developing API.