Código PHP:
<? setcookie("seccur",$_POST['CURSO'],time()+36000*365);?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento sin título</title>
<script language = "javascript">
<!--
location.href="selecinspector.php?r=<? print $r=$r+1;?>&re=<? if($r>1){print $r=$r-1;}else{$re=$r;}?>";
//-->
</script>
</head>
<body>
</body>
</html>