= $min && $po_tmpChk <= $max) set2Session($checkThis); } function set2Session($checkThis){ if($_POST[$checkThis] != $_SESSION[$checkThis]){ $_SESSION[$checkThis] = $_POST[$checkThis]; $GLOBALS[changeFlag4Session] = 1; } } // Converts an array to a string that is safe to pass via a URL function array_to_string($array) { $retval = ''; $null_value = "^^^"; foreach ($array as $index => $val) { if(gettype($val)=='array') $value='^^array^'.array_to_string($val); else $value=$val; if (!$value) $value = $null_value; $retval .= urlencode(base64_encode($index)) . '|' . urlencode(base64_encode($value)) . '||'; } return urlencode(substr($retval, 0, -2)); } if($po_submit && $_REQUEST["referer"] != ''){ // If the form has been sent... $target = $_REQUEST["referer"]; if ( strpos( $target, '?') === false ) { $target .= '?'.session_name().'='.session_id(); } header( "Location: " . $target ); } ?>