#!/usr/bin/perl
open(SISSE, "salad2.txt");
@read=<SISSE>;
close(SISSE);
print "Content-type: text/html\n\n";
print "<html> <head> <title> Modifying keywords </title> </head>\n <body>\n";
print "<form action=vahet.pl method=post>\n";
print "<table> <tr> <td>Old keyword <td> New keyword";
foreach $rida(@read){
($eel, $kesk, $siht)=split(/=/, $rida);
#chop($siht);
print "<input type=hidden name=" ,$eel," value=",$siht,"> \n"; 
 if(substr($rida, 0, 1) eq "x"){
print "<tr> <td>", $kesk, " <td><input type=text name=up size=10 value=", $kesk, "> <br>";
 }
else 
{print "<input type=hidden name=up value=", $kesk, ">";}
print "\n";
}
print "</table> \n";
print "<input type=submit value=OK> </form> \n</body> </html>\n";