Get QueryString Params

<?php // Wyciaganie wszystkich wartosci z query_string function getQueryParams(){ global $query_string; $parts = explode('&', $query_string); $return = array(); foreach($parts as $part){ $tmp = explode('=', $part); $return[$tmp[0]] = trim(urldecode($tmp[1])); } return $return; } // Wyciagniecie konkretnego parametru z query_string function getQuerySingleParam($name){ $qparams = getQueryParams(); if(isset($qparams[$name])){ return $qparams[$name]; } return NULL; } ?>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.