JRequest::getVar()
$address = JRequest::getVar('address'); -data only
$address = JRequest::getVar('address', 'Address is empty'); -default param
$address = JRequest::getVar('address', 'default value goes here', 'post'); - source param
$address = JRequest::getVar('address', 'default value goes here', 'post','validation type',mask type);
validation type (INT,INTEGER,FLOAT,DOUBLE,BOOL,BOOLEAN,WORD,ALNUM,CMD,BASE64,STRING,ARRAY,PATH,USERNAME)
mask type :
- JREQUEST_NOTRIM - prevents trimming of whitespace
- JREQUEST_ALLOWRAW - bypasses filtering
- JREQUEST_ALLOWHTML - allows most HTML. If this is not passed in, HTML is stripped out by default.
JRequest::get( 'post' )
To receive a whole array filtered. If you would want to get the POST data