How to submit a form using AJAX?

In this micro tut I will show you how to submit your HTML form using AJAX.

Why change a working formula?
Because it can work better and faster! (A good motto for web developers :) )
Most things we do on the web comes down to user experience. You want people browsing your site(s) to enjoy it so much that they want to stay longer, and come back again later.Read More…

In this series, I’m going to take a look at both PHP’s error and exception models — what each is, how they work, and how and when to use the one or the other.

In this instalment, having covered the basics of PHP error handling in part 1, the need for exceptions in part 2, and how to work with exceptions in part 3, let’s take a look at error- and exception-handling methodology.

In this series, I’m going to take a look at both PHP’s error and exception models — what each is, how they work, and how and when to use the one or the other.

In this instalment, having covered the basics of PHP error handling in part 1 and the need for exceptions in part 2, I’ll continue unfolding exceptions by taking a look at how they work, and how they’ve been implemented in PHP.

If you start working with the Google maps API, one of the first things you might want to do is to add a marker or custom icon to the map at a specific location. This is easy enough to do and you can have a look at this example on how to do it. But what if you want to add text or a label to one of your markers that always shows up on the map, not only when you hover over the marker? Strangely enough, this isn’t as easy as you would think…

I was building database tables for a project and came across a problem that I’ve tried to ignore in the past: When I have a main table, a second table, and a table linking the two, and the link-table can link a single record in the main table with multiple records in the second table, doing a join would return multiple rows for a single entry in my main table — a row for each link between the main and second tables. But I wanted to retrieve the data in such a way that only a single row is returned for each row in the main table, which contains all the data from the second table. A mouth-full, I know! Keep reading to see examples as well as the answer I’ve found.

I didn’t quite know what to call this post, because I really want it to show up in search engine results. Why? Because I couldn’t find the solution online and it needs to be there! I guess the heading could have been any of the following:

But what developers often don’t know, is how to target an element containing more than one class — not elements which contain only one of the classes, but only elements which contain all of the classes. So in this article, I’ll show you how to target an element which contains both (class X AND class Y), not just (class X OR class Y).

Using custom cursors on your website can be very simple, but can also be a bit frustrating, depending on what exactly you want to do, so I will try to give a clean breakdown to simplify the process. Read More…