http://hc/en/catalog/simona/all.html?gid=9&type=1&display=all
http://hc/cz/catalog/simona/all.html
<?php
// build the query string using the parameters I want to redisplay...
$queryParams = array();
foreach ( array( 'gid', 'type', 'display' ) as $param )
{
if ( array_key_exists( $param, $_GET ) )
{
$queryParams[] = $param . '=' . rawurlencode( $_GET[ $param ] );
}
}
if ( count( $queryParams ) > 0 )
{
return '?' . implode( '&', $queryParams );
}
return '';
?>