Prototype Javascript Validation In Magento Forms

Suppose you are developing a custom form in Magento and wants to use the default Magento form validation functionality, for the form validation Magento uses a file named as form.js (js/varien/form.js) which provide abstract Javascript functions for forms. To provide the form validation, form.js uses the Validation class which

addAttributeToFilter Conditions In Magento

addAttributeToFilter is a predefined function of the Magento that can be called on a product collection of the Magento. We can say, it adds a condition to the WHERE part of the MySQL query of the Magento, used to extract product collection from the database.

Display Countries Drop Down In Magento

If you are working with the custom Magento development,sometimes it requires to display the Countries Name in frontend or into the admin panel. In this post I am trying to describe how we can display the countries drop down in Magento?. Actually the country data are not stored into

Difference between include() and require() functions In PHP

In my previous post I have described regarding the PHP file inclusion methods these are the include() Function, include_once() Function, require() Function and require_once() Function. In this post I am trying to describe the differences between the include() and require() functions, the includes and the require functions both are

File Inclusion In PHP

File inclusion in the PHP is one of the most usefull function, by which you can include the content of a PHP file into another PHP file before it is executed by the server. With file inclusion you can create the header,footer,left sidebar,right sidebar and includes all these into

Difference between PHP Session and Cookies

In my previous post I have described regarding the PHP Session and PHP Cookies,here In this post I am trying to define the main differences between the Session and Cookies. The differences are given below point wise:

Cookies In PHP

Cookies are invented to allow the webmasters to store the user information on the user's system, basically it is the concept to store the user name and password on the user's machine so that there is no need to logged in (filling the User name and Password), every time

Session In PHP

Suppose you are working on the PHP application and you want to store the user information for the future use, Here we use the Session, Session is used to store the user information on the server for the future use. However this storage is temporary type and it is