Using a cookie with JavaScript is easy. With the cookie, you can save small bits of information that will allow you to create a customized experience for the user. Remember though, you should never save personal information in a cookie, like a social security number, a password, or a credit card number. Cookies are not a very secure way of transferring information. Also, don’t rely too heavily on JavaScript cookies since a viewer can turn them off. If you need to track viewer information or pass personal information, use server-side session variables. (more…)
Let’s walk through the steps of creating a PHP function that will convert a MySQL date (2002-06-03) and turn that into a real world date. That way, if you ever use the date type of MySQL, you can use easily convert that date as you call it in your PHP code. It’s a small function that is driven almost solely by the substr function built into PHP. (more…)
Typography is one the most important aspects of design and, yet, is one of the most commonly overlooked. Good typography is essential for good design in any medium. The key to good typography on the web is legibility. By choosing the right font or combination of fonts, using contrasting colors, proper alignment and spacing, you can achieve cleaner, more dynamic, and more effective websites. (more…)