Create a List of Countries with a Checkbox(more details in the description)

In Progress Posted Mar 2, 2016 Paid on delivery
In Progress 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.

HTML jQuery / Prototype MySQL PHP

Project ID: #9824150

About the project

10 proposals Remote project Active Mar 2, 2016

10 freelancers are bidding on average $46 for this job

rinsadsl

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

$24 USD in 1 day
(728 Reviews)
8.2
cobol1962

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

$35 USD in 1 day
(28 Reviews)
4.8
arifshaon

Sounds straight forward enough

$29 USD in 1 day
(3 Reviews)
2.7
Yugah

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

$25 USD in 1 day
(0 Reviews)
0.0
shashikantparma3

A proposal has not yet been provided

$25 USD in 3 days
(0 Reviews)
0.0
sshaliniseb

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.

$25 USD in 1 day
(0 Reviews)
0.0