$val) { $magic_quotes_gpc=ini_get('magic_quotes_gpc')?true:false; if(is_string($val)) { if($magic_quotes_gpc) { $val=stripslashes($val); } $val=trim($val); $_POST[$key]=$val; } elseif(is_array($val)) { foreach($val as $key2=>$val2) { if($magic_quotes_gpc) { $val2=stripslashes($val2); } $val2=trim($val2); $_POST[$key][$key2]=$val2; } } $GLOBALS[$key]=$_POST[$key]; } } // The Steps $total_steps=7; if (!$_POST) { $current_step=1; } elseif ($_POST['language_list']) { $current_step=2; } elseif ($_POST['step2']) { $current_step=3; } elseif ($_POST['step3']) { $current_step=4; } elseif ($_POST['step4']) { $current_step=5; } elseif ($_POST['step5']) { $current_step=6; } ?>