Joomla substitue for $_GET and $_POST
- September 18th, 2008
- Posted in Joomla
- Write comment
instead of using $_GET, and $_POST in jooma, the frame work use instead JRequest::getVar
actually, I found no reason at first to change $_GET and $_POST with that long string, especially that I’m not a big fan of memorizing things. Frankly, the interesting part about this long function is that it protect your Joomla system from Sql injection, or any sinister undesired passed string.
How does it protect it? I didnt go into the core of this function but I believe its some secure code that stripes tags.
The simplest way to use the function is :
$var = JRequest::getVar( 'var' );
No comments yet.