Trust is everything in this day and age. You have to trust a lot of people, from the guy who gives you directions to your local plumber. After all, you're not always the authority. However, when developing applications for the web, you must assume the role of authority. Otherwise, the user will assume the role, which is a big gamble: total data integrity, data corruption, or diversion of data -- if the user is the authority, you don't know what the results will be.
Firstly I would like to say a couple of words about the Ruby On Rails. It is a wonderful RAD framework written in the Ruby programming language and including by the very design such hot features as AJAX. However the power of the framework as I precieve it lays actually in well-thought ready-made collection of classes providing valuable and time-saving utilities or stubs for most-frequently used situations
Alternating row colors is a very good way to make big tables more ergonomic and esthetic. Script and explanation here. Also explains the modulus operator.
Sometimes we need to validate if user has entered the correct email id format or not in contact form or signup
form or guest book. In PHP we can use regular expression to validate if the user entered emailid is in correct
format or not. Below code sample of a method just does the same. If you have any queries please post at PHP
category in the forum and I'll try to answer.
The PHP Manual defines an array in PHP as an ordered map. Personally, I don't like this definition. I will define an array in PHP as a collection of variables, which I think is a little more descriptive. In most languages, at least the ones I am familiar with, the variables in this collection must all be of the same type. Not so in PHP! This is because of PHP's Type Juggling. I'm not going to go into great detail about Type Juggling, but basically it means that you don't declare a variable as a certain type. The context in which the variable is used determines its type.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.