A nice way to get the value of a $_GET in php
By liviu - Posted on May 24th, 2009
Tagged:
Here is a nice way to get the value of a $_GET in php (i think it will also work with $_POST)
function get($value)
{
$valoare = isset($_REQUEST[$value]) ? addslashes(strip_tags($_REQUEST[$value])) : '';
return $valoare;
}
Bookmark/Search this post with:
- liviu's blog
- Login or register to post comments
Delicious
Digg
StumbleUpon
Propeller
Reddit
Magnoliacom
Newsvine
Furl
Facebook
Google
Yahoo
Technorati
Icerocket