What can you answer to your client when you try to explain that your code is W3c, semantic, crossbrowser and…accessible and your client asks you “Good for you you’re coding accessible websites, but do you actually know any blind user?” Meaning, why should someone care about how you code a site as long as table-based [...]
A good way to learn about accessibility is through examples and discussions. In this post I will try to translate the WCAG sometimes-hard-to-get rules into a copy-paste real contact form example. You can check the test link, download the code and/or keep reading a bit more. As I mentioned before, contact forms are in great [...]
Strange? What do you say if we use this term for a form validation, server side? I say “Unobrusive PHP” because it’s what I work with, but it can be any other language. Let me explain We already do this in Javascript. We attach a class to a field we want to validate, then, when [...]
A nice “hidden” feature that Textmate has is to check the syntax of the php files you are writing and display a popup with the result. How to do this? Open Bundle Editor, search for the PHP bundle, scroll down until you find the Validate syntax command. Edit the Save setting to Current File. Now, [...]
This tutorial will show us how to get the last news of a blog and put it on our site. We may have the case when our site is not fully driven by a blog engine, but we have one, so we want to put on the ‘News’ section the last posts, or we want [...]
Kroppr is an unobtrusive script that willenhance any site that wants to offer an image cropping tool for its visitors. Unlike other scripts, Kroppr is able to ROTATE, zoom and move the image in the real time without using plugins – flash or java. The actual picture crop is done after the user is satisfied [...]
Some coders are doing a living from selling php scripts. Nothing new here. But to protect themselves from piracy they need to encode the php code to prevent stealing, unauthorized usage and so on. This can be accomplished using various encoders, some strong , some weak that will give them a specific amount of security, [...]
Some times, when we have a pretty big amount of pages on a site but don’t need or want to use a CMS so we take advantage of PHP and split the page layout in more includes like:header.php, content.php, footer.php – this way we do not need to write the same content (or copy paste [...]