In this tutorial I'm going to show you how to create a pretty awesome 'Contact us' page. This page will contain the right amount of features that I think most Contact us pages should have. It will contain a contact form which will use Html5 for client site validation, Php for server side validation and a neat trick to avoid spammers. We will also use the Php's GD library for sh... Read more
In this short tutorial I will explain how to show a custom 404 error page for a request that a user makes on your site, for which there is no content. This could be because a user requested a file that didn't exist, like: www.example.com/sdfsaffsafa65sf21; or that the file exists but there is nothing to show for the requested URL, like: www.example.com/article.php?id=sfadsfsdas... Read more
In this second part we are going to complete the log in and registration system. In the last part, I focused on explaining some of the OOP and PDO fundamentals, but in this part I will simply update and extend the system by (i) improving the security of the system, (ii) adding few more features and (iii) finally, touching on few other things before we can launch the site.
... Read more
There is a lot of advice on the internet regarding what all things a person need to become a web developer. Although, many include very good advice, many still are quite long winded and include unnecessary extra information and resources that I believe can confuse absolute beginners. Therefore, I am going to have a go at explaining exactly what all languages/skills you need.... Read more
In this tutorial I will demonstrate Object oriented Php (OOP) and Php Data Objects (PDO) that many Php developers still have difficulty understanding and making a shift from procedural programming and the now deprecated mysql_x functions. I will not explain the basics or the benefits of them, but rather explain how you can use OOP and PDO to create a full fledged Login and Regi... Read more
PDO was introduced in Php5.1 and it is a very flexible and a more secure way of connecting and quering a Database. PDO is a replacement to what you might be used to which is using the old mysql_x functions such as mysql_connect, mysql_select_db, mysql_query and so on. In this tutorial I will show you some of the PDO's main features and how PDO can be so useful.... Read more