Using the example link you provided above, try this as yout Test snippet and see if it helps:
<?php
/* testsnippet
usage: call uncached
[!testsnippet!]
*/
$output ='';
$tpp = isset($_GET['c']) ? $_GET['c'] : 'tpp not found';
$output .='<p>tpp: '.$tpp.'</p>';
return $output;
?>
Quote from: simonbingham at Feb 03, 2013, 11:22 PMA slightly different variation on the previous responses:
<!--?php
/**
* MY_GetQueryStringValue
*
* DESCRIPTION
*
* This snippet returns a value from a query string
*
* USAGE:
*
* [[!MY_GetQueryStringValue? &field=``]]
*/
return isset($_GET[$field]) ? $_GET[$field] : '';
-->
This doesn't work!
It has to be:
return isset($_GET['field']) ? $_GET['field'] : '';