Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
PHP jQuery Cookbook
PHP jQuery Cookbook

PHP jQuery Cookbook: jQuery and PHP are the dynamic duo that will allow you to build powerful web applications. This Cookbook is the easy way in with over 60 recipes covering everything from the basics to creating plugins and integrating databases.

eBook
€17.99 €25.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

PHP jQuery Cookbook

Chapter 2. Combining PHP and jQuery

In this chapter, we will cover:

  • Fetching data from PHP using jQuery

  • Creating a query string automatically for all form elements

  • Detecting an AJAX request in PHP

  • Sending data to PHP

  • Aborting AJAX requests

  • Creating an empty page and loading it in parts

  • Handling errors in AJAX requests

  • Preventing a browser from caching AJAX request

  • Loading JavaScript on demand to reduce page load time

Introduction


You surely know how typical web applications work. You enter a URL in your browser and the browser loads that page for you. If you are required to submit a form, you will fill it and the browser sends the filled data to the server side for processing. During this time you wait for the entire page to load. If you are on a slow connection, the wait is even longer.

Let me describe another typical scenario, a web page has two select boxes. The first select box asks you to select the name of a country. You make your selection and the whole page loads to populate the second select box with the names of the cities in that country. If by mistake you made a wrong selection, fixing your mistake means another page load. Irritating isn't it?

The point I am trying to make here is: why load the complete page every time? Why can't you just select the country name and using some magic in the background be provided with the city list without loading the complete page? Maybe you can fill some other...

Fetching data from PHP using jQuery


This recipe will teach you the usage of jQuery's get method to retrieve data from a PHP script. We will see a simple example where data will be fetched from the server using the get method based on user selection from a form.

Getting ready

Create a directory named chapter2 in your web root. Put the jQuery library file in this directory. Now create another folder inside and name it as Recipe1. As a recipe can have more than one file, it is better to keep them separate.

How to do it...

  1. Create a file index.html in the Recipe1 folder. Write the HTML code in it that will create a combo box with some options.

    <html>
      <head>
        <title>jQuery.get()</title>
        <style type="text/css">
          ul{border:1px solid black; list-style:none;margin:0pt;padding:0pt;float:left;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12px;width:300px;}
          li{padding:10px 5px;border-bottom:1px solid black;}
        </style>
      </head&gt...

Creating a query string automatically for all form elements


Getting ready

Create a new folder Recipe2 inside the chapter2 directory. Now create a file index.html in the newly created directory.

How to do it...

  1. Open the index.html file for editing and create a form with some HTML elements, such as textboxes, radio buttons, and check boxes.

    <html>
    <head>
        <title>Serializing form values</title>
        <style type="text/css">
          ul{ border:1px solid black; list-style: none;margin:0pt;padding:0pt;float:left;font-family:Verdana,Arial, Helvetica, sans-serif;font-size:12px;width:400px;}
          li{  padding:10px 5px;border-bottom:1px solid black;}
          label{width:100px;text-align:right;margin-right:10px;float:left;}
        </style>
      </head>
      <body>
        <form>
          <ul>
            <li><label>Email:</label><input type="text" name="email"/></li>
            <li><label>Full Name</label><input type...

Detecting an AJAX request in PHP


After going through this recipe you will be able to distinguish between AJAX requests and simple HTTP requests in your PHP code.

Getting ready

Create a new directory named Recipe3 in the chapter2 directory. Inside it create an HTML file named index.html and another PHP file check.php.

How to do it...

  1. Open the index.html file and create a button that will load a string from a PHP file using the $.get() method.

    <html>
      <head>
        <title>Detecting AJAX Requests</title>
      </head>
      <body>
        <form>
          <p>
            <input type="button" value="Load Some data"/>
          </p>
        </form>
      </body>
    </html>
  2. Next, include jQuery and write the code for a click event of the button. Clicking on the button will simply send an AJAX request to check.php, which will return a string. The response string will be appended to the page after the input button.

    <script type="text/javascript" src="../jquery...

Sending data to PHP


GET and POST are the two most frequently used methods for accessing pages. In the first recipe you learned to make requests using GET method.

This recipe will make use of jQuery's $.post() method to retrieve data from a PHP script. We will see a simple example where we will fill some data in a form and the data will be sent to PHP using the POST method. Sent data will be processed by PHP and then displayed in the browser.

Getting ready

Create a new directory named Recipe4 under the chapter2 directory.

How to do it...

  1. Create a file named index.html in the newly created Recipe4 directory. In this recipe, we will use the same form that we created in the second recipe (Creating query string automatically for all form elements) of this chapter. So write the HTML that will create a form with multiple controls.

    <html>
      <head>
        <title>Sending data through post</title>
        <style type="text/css">
          ul{ border:1px solid black; list-style:none;margin...

Aborting AJAX requests


Consider a case where a user is allowed to select a date on a page and an AJAX request is made to the server to fetch some data against that date. If the request is under processing and in the meantime the user selects another date and a new request is sent, the server now has two requests pending.

Imagine what will happen to an application if there are multiple users repeating the same behavior. Desirable behavior in this case will be to cancel the pending request and allow only the current one.

This recipe will explain how to cancel any pending requests.

Getting ready

Create a new folder in chapter2 directory and name it as Recipe5.

How to do it...

  1. We will use the same markup that we created in the first recipe of this chapter. So create a new file index.html and write the code to create an HTML page with a combo box and two options. Also create a paragraph element on the page that will display the received response.

    <html>
      <head>
        <title>Aborting...

Creating an empty page and loading it in parts


The larger a web page the more time a browser will take to download it. This may degrade the user experience in case of slow connections or larger pages.

One approach that can be followed is to load only what is absolutely necessary for the user and load the rest of the content when required. There are some sections on a page which are rarely accessed. It will make page loads faster and user experience will improve.

In this recipe we will demonstrate this case with a simple example. We will create a single HTML page and will allow the user to load its one section when required.

Getting ready

Create a folder named Recipe6 in chapter2 directory.

How to do it...

  1. Create a new file and save it as index.html. This page will have three sections: head, content, and footer. HTML for the footer will not be created; instead we will load it dynamically. We have also applied some CSS in the head section to customize the appearance of the page.

    <html>
      &lt...

Handling errors in AJAX requests


Errors are inevitable. Period. Sometimes things are not in your control—like server failures—and in this case you must have an error handling mechanism in place, which can catch the errors and show them to the users. Throughout the recipes in this chapter we have implemented callback functions that execute when a request is successful. It may happen (and I promise you it will happen) that you typed a filename incorrectly or the server encounters an error and you get an error rather than a successful response.

This recipe will explain how to deal with such situations in AJAX requests.

Getting ready

Create a folder Recipe7 inside the chapter2 folder.

How to do it...

  1. Create a file named index.html in the Recipe7 folder. Define some CSS styles in it and create an input box that will ask for a filename to load and a button. Also create a paragraph where contents loaded in a file will be displayed.

    <html>
      <head>
        <title>Error handling</title...

Preventing browser from caching AJAX requests


In case of GET requests, browsers cache these requests and when the request is invoked again they do not send the request to the server and instead serve it from the cache.

This recipe will explain how to force browsers to send the request to a server instead of serving it from the cache.

How to do it...

  1. While sending an AJAX request use the cache option to force no caching by the browser. Setting the cache option to false does not let the browser cache any AJAX requests and the data is loaded from the server each time the request is made.

    $.ajax({
      url : 'someurl.php',
      cache: false,
      success: function(data)
      {
        //do something with received data
      }
    });

How it works...

On an AJAX request, the browser checks if a request to that URL is already in the browser cache or not. If it is found in the cache, no request to the server is sent and response from the cache is served.

jQuery provides a cache option that can be used to override this browser...

Loading JavaScript on demand to reduce page load time


Think of a rich Internet application that makes heavy use of JavaScript to interact with the user. Such a page typically consists of more than one JavaScript files, such as a file for calendar control, another file for special effects, yet another plugin for your cool accordion, and so on.

This results in the increase of the page load time as browsers cannot download all of these files simultaneously. The best solution for this is to load only absolutely necessary files at the time of loading the page and load the other files when required.

This recipe will explain how JavaScript files can be loaded on demand.

Getting ready

Create a directory named Recipe9 in the chapter2 folder.

How to do it...

  1. Create a file index.html in the chapter2 folder. Write the HTML to create a page that will have a paragraph element and four buttons. The first button will be used to load another JavaScript file and rest of the buttons will manipulate the paragraph...

Left arrow icon Right arrow icon

Key benefits

  • Create rich and interactive web applications with PHP and jQuery
  • Debug and execute jQuery code on a live site
  • Design interactive forms and menus
  • Another title in the Packt Cookbook range, which will help you get to grips with PHP as well as jQuery

Description

As web technology evolves, the gap between desktop applications and web applications continues to vanish. And what better way to bridge that gap, for your own website, than using the best two open source technologies in the market: PHP and jQuery. The power-combo of these two is leading the way in revolutionizing the RIA world. Although they are easy to integrate, finding or figuring out how to do what you want to do is rather arduous.The PHP jQuery Cookbook will be your handy guide with walkthroughs of common integration tasks and problems that will help you master the possibilities available using the PHP and jQuery combo. You will learn quick solutions to necessary tasks to integrate the power of two of the best known and most widely used web technologies of today – PHP on the server side and jQuery on the client side. Glide through the basics and move to advanced topics to create dynamic and interactive web applications with this book in hand.This book covers a wide array of technical aspects of creating an interactive website. Apart from basics of PHP and jQuery, you will go through advanced topics like creating plugins, validating controls, and useful utilities that you will be able to use as stand-alone tools. AJAX, the key technique of browser-server communication is covered in detail. You will also learn to use JSON, which is becoming preferred as a mode of data interchange over XML, both in web applications and web services.The book also covers database interaction, which is an important part of any dynamic web application. You will also gain expertise in debugging JavaScript with the help of useful tools that will save you hours of tedious manual debugging.Most importantly, by using jQuery and PHP together, you will be able to develop applications that are compatible with all major browsers, with no need to write code targeted at specific browsers!

Who is this book for?

If you want to use PHP and jQuery together to create web applications this book is for you. It provides a large number of examples in each chapter that will take you from a basic developer to a pro by giving step-by-step instructions for each task in developing web applications using PHP and jQUery. All you need are JavaScript basics and you are on your way to building power web applications, with this book in hand.

What you will learn

  • Start from the basics and learn pro-level tricks by the end of the book
  • Create interactive and dynamic hierarchical menus
  • Apply eye-catching effects on form elements
  • Integrate a database along with PHP and jQuery
  • Use AJAX to enhance user experience and page interaction
  • Learn how to work with JSON and XML for efficient data exchange
  • Create tools and utilities for your web applications
  • Master form validation on client side as well as server side
Estimated delivery fee Deliver to Cyprus

Premium delivery 7 - 10 business days

€32.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Dec 14, 2010
Length: 332 pages
Edition : 1st
Language : English
ISBN-13 : 9781849512749
Languages :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Cyprus

Premium delivery 7 - 10 business days

€32.95
(Includes tracking information)

Product Details

Publication date : Dec 14, 2010
Length: 332 pages
Edition : 1st
Language : English
ISBN-13 : 9781849512749
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 103.97
PHP Ajax Cookbook
€37.99
Responsive Web Design with HTML5 and CSS3
€32.99
PHP jQuery Cookbook
€32.99
Total 103.97 Stars icon

Table of Contents

9 Chapters
Handling Events with jQuery Chevron down icon Chevron up icon
Combining PHP and jQuery Chevron down icon Chevron up icon
Working with XML Documents Chevron down icon Chevron up icon
Working with JSON Chevron down icon Chevron up icon
Working with Forms Chevron down icon Chevron up icon
Adding Visual Effects to Forms Chevron down icon Chevron up icon
Creating Cool Navigation Menus Chevron down icon Chevron up icon
Data Binding with PHP and jQuery Chevron down icon Chevron up icon
Enhancing your Site with PHP and jQuery Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6
(5 Ratings)
5 star 80%
4 star 0%
3 star 20%
2 star 0%
1 star 0%
Amazon Customer Sep 12, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Kann das Buch nur empfehlen um die Zusammenarbeit zwischen jQuery und PHP zu bekommen. Allerdings würde ich mir manche Kaptiel etwas ausführlicher wünschen
Amazon Verified review Amazon
Julian A. Rozzell Sr. Apr 23, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Love the information provided in this book in developing html, php and javascript codes: effectively, efficiently, producitvely and accurately. A must for developers who seek professionalism and quality codemanship.
Amazon Verified review Amazon
Cristian Astudillo B Mar 26, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A very didactic and practical book; the examples work fine.
Amazon Verified review Amazon
Anders S. Nielsen Jul 27, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book was very valuable to my project, which involved writing a jQuery Mobile app that fetches and sends data through a PHP back-end. I found few useful examples online, and since I was brand new to the world of jQuery, this book was a godsend, covering most of the scenarios relevant to my app.Of course, this book isn't specific to jQuery Mobile, so I used another book to learn proper front-end coding of JQM.
Amazon Verified review Amazon
K. Robinson Sr. Mar 15, 2012
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
You can find all the material that's in this book on the web. With a little research skills and filtering through many website, you can find just about any tutorials on jQuery. Although this books give you some the modest, coolest things about jQuery, you can implement the code into your site quickly and be up and running with jQuery on your site. I gave three stars because everything is on the web all ready.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the digital copy I get with my Print order? Chevron down icon Chevron up icon

When you buy any Print edition of our Books, you can redeem (for free) the eBook edition of the Print Book you’ve purchased. This gives you instant access to your book when you make an order via PDF, EPUB or our online Reader experience.

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela