<html>
<body>
<title>Cifrario</title>
<FORM ACTION="Cifrario.php" MWTHOD=POST>
<align=center width=50% border=1 cellpadding=5><caption>Cifrario con algoritmo Playfair Cipher</caption>
<TABLE>
<TR><TD>Messaggio<TD><INPUT TYPE="TEXT" NAME="chiaro" SIZE="40">
<TR><TD>Chiave<TD><INPUT TYPE="TEXT" NAME="chiave" SIZE="40">
</table>
<INPUT TYPE="submit" VALUE="INVIA">
<INPUT TYPE="reset" VALUE="CENCELLA">
</form>
</body>
</html>
<html>
<body>
<?php
$R=5;
$C=5;
$chiave=$_post["post"];
$messaggio=[];
$chiave=strtolower($chiave);
$l= int strlen ( $chiave );
for($i=0;$i<n;$i++){
if(!in_array($chiave[$i],$$messaggio)){
$parola[]=$chiave[$i];
foreach($messaggio as &$value){
echo $value;
}
<form>
<table>
<table align=center width=50% border=1 cellpadding=5><caption>Cifrario</caption>
for($i=0; $i<$R; $i++){
<TR><TD>
}
for($j=0; $j<$C; $j++){
<TR><TD>
}
</table>;
</form>
</body>
</html>
?>