Feed Rss



Archive for February, 2008

Feb 27 2008

Sending a xml HTTP Request (AJAX Request)

DemoDownload This is a basic tutorial on how to use the xmlHTTPRequest object to send an ajax request, the way I have chosen to do this is by calling the request encased in my own object. First we need to create an object, and it shall be called 223ajaxRequest224 and it will have three arguments [...]

tag: ,


Feb 27 2008

Input text value change on click w/wo jQuery

DemoDownload This tutorial is featured on derekharvey.co.uk, the method has been applied to the username and password field. The reason i created this javascript was because usually when you have a text field and specify a default value when you click on the field the default value needs to be removed in order to fill [...]

tag:


Feb 27 2008

HTML Select Skin

category: CSS,Projects author:

DemoDownload A more simplified version of this script is available here ...240 Utilizes: Javascript, CSS, (x)html Compatibility: Firefox 1.5 / Firefox 2, MSIE7 (MSIE6 not supported) Credits: Howard Yeend (For suggesting the change of .value to .innerHTML so any numeric values are not displayed) How to In this tutorial i am going to show you [...]

tag: , , ,


Feb 27 2008

Var Vars

category: PHP,Snippets author:

DemoDownload Var vars can be very handy, you can use them to associate a name to a variable. <? $my_soon_to_be_variable = 'wow_my_variable'; $$my_soon_to_be_variable = 'Now it's a VAR VAR'; // It's a var var echo $wow_my_variable; // That's right, it's a variable ?>

tag: , ,


Feb 27 2008

Sorting Arrays

category: PHP,Tutorials author:

DemoDownload You can sort an array in many different ways using PHP using many different functions, here are a few. sort($array); asort($array); ksort($array); These three different sorting functions all can be sorted in ascending order. The reverse functions are: rsort($array); arsort($array); krsort($array);

tag: , ,


Feb 27 2008

PhpBB Latest Threads

category: Snippets,SQL author:

DemoDownload You can use the following code to get the latest threads from a PHPbb forum, it extracts the post information and the user information. Remember to replace "tblprefix" with your defined table prefix. SELECT p.post_id, p.topic_id, p.forum_id, p.post_time, p.poster_id, pt.post_subject, pt.post_text, u.username FROM `tblprefix_posts` p INNER JOIN `tblprefix_posts_text` pt ON pt.post_id = p.post_id LEFT [...]

tag: ,


Feb 27 2008

Make all letters caps

category: PHP,Snippets author:

DemoDownload A nice little way of making all letters into capitals is to use PHP's inbuilt function strtoupper, like so. echo strtoupper('Hi, i am going to be all in caps in just one mo'); Will print ... HI, I AM GOING TO BE ALL IN CAPS IN JUST ONE MO

tag: , ,


Feb 27 2008

Validation

category: PHP,Tutorials author:

DemoDownload n this day and age and taking into consideration the evolution of the web, allot of things are overlooked when programming and one of the main subjects I see commonly being 223overlooked" is validation. Validation isn't that difficult you just need to question the integrity of every string trying to be parsed, the most [...]

tag: , ,


Feb 27 2008

Files Uploading, Validation

category: PHP,Tutorials author:

DemoDownload Uploading file is one of the most convenient things to do with PHP. This tutorial will cover how to upload files safely and how to ensure no files are replaced in the process. The first step would be creating your form, this will be a basic HTML form with the attribute encrypt added to [...]

tag: , ,


Feb 27 2008

Sticky Caps

category: PHP,Tutorials author:

DemoDownload Ever bothered thinking about how to make your site stand out a little more? I was think about this a while back and what came to mind was sTicKy cApS, i think that's the terminology, well anyway here is the code to create "sticky caps". First of all we need a string to apply [...]

tag: , ,