problema x html forum

Ho questo link che dovrebbe passare un valore

codice:
[/php]">Link1
frame.php è un frame così articolato:

codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
 "http://www.w3.org/TR/html4/frameset.dtd">
<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta>
  </head>
  <frameset rows="0,*" cols="*" frameborder="NO" border="0">
    <frame src="altophpdiretto.php" name="topFrame" scrolling="NO" noresize>
    <frameset cols="2000,*" frameborder="NO" border="0">
      <frame src="intro.html" name="paese" scrolling="SI" noresize>
    </frameset>
  </frameset>
  <body></body>
</html>
altophpdiretto.php dovrebbe ricevere il valore grazie a questo codice:

Codice PHP:
<?php

if(isset($_GET['valore']) && $_GET['valore'] == "topcode1") {  
   
$_SESSION['variabile'] = "codice1";
   
$valore_da_usare "codice1";
   }
   
   else if(isset(
$_GET['valore']) && $_GET['valore'] == "topcode2") {  
    
$_SESSION['variabile'] = "codice2";  
    
$valore_da_usare =  "codice2";
}  

  else if(isset(
$_GET['valore']) && $_GET['valore'] == "topcode3") {  
    
$_SESSION['variabile'] = "codice3";  
    
$valore_da_usare =  "codice3";
}  

?>
e tenerlo in teoria fino alla pagina finale
con ancora il seguente codice

Codice PHP:
<?php

if(isset($_GET['valore']) && $_GET['valore'] == "topcode1") {  
   
$_SESSION['variabile'] = "codice1";
   
$valore_da_usare "codice1";
   }
   
   else if(isset(
$_GET['valore']) && $_GET['valore'] == "topcode2") {  
    
$_SESSION['variabile'] = "codice2";  
    
$valore_da_usare =  "codice2";
}  

  else if(isset(
$_GET['valore']) && $_GET['valore'] == "topcode3") {  
    
$_SESSION['variabile'] = "codice3";  
    
$valore_da_usare =  "codice3";
}  

?>

dove da un bottone relativo dovrebbe essere carpito... e inviato alla pagina finale php ricevente...

Ma il valore si perde strada facendo...

Qualcuno/a sa dirmi come potrei fare a conservarlo fino alla fine nonostante le pagine frame e html in mezzo al tragitto...?

Grazie