Month: July 2009
-
How to filter & escape data from Injection attacks in PHP!
Ask any security expert! He will say you should always filter POST and GET data by escaping them before insertion into the database. In that way your scripts can be safe from SQL injection attacks. Many php programmers are so lazy and just directly insert the POST data without filtering it like [php] mysql_query("INSERT into…
-

Quick & Easy Form Validation Tutorial with JQuery
Form validation has become never been easy like before. If you havent heard of jQuery, then its time to get know now. Jquery is an open source set of javascript library, that brings user interactivity in web applications so easy even for a beginner with just few lines of code. In this tutorial, i am…
-
how to call a php script from javascript?
I have always wondered how to call a php script and send GET data from javascript code. It was very important for me as in many projects i have worked i never wanted to header redirect to original php page after delete, edit operations which is really a mess. jQuery has revolutionized the way we…
-
how to check if image loaded or not in javascript?
If you are having a webpage with large sized images, you would notice the browser taking long time to load those images and showup. A good idea would be show a loading animation until large photos load. There is a way to check whether the images have been loaded or not in javascript. Using the…
