I'm not really sure why this simple PHP script is not working,
My browser won't load the page. I'm thinking that its a flaw in the logic rather than syntax, but perhaps someone here would be kind enough to point out what/why I am going wrong.
<html>
<head>
<title>My Encryption Program</title>
</head>
<body>
<?PHP
$ConvertedLetter ="";
$SecretMessage= "Kiss My Shiny Metal...";
$MessageLength = strlen($SecretMessage);
$Counter = 0;
For($Counter;$MessageLength;$Counter++){
$LetterToEncrypt = substr($SecretMessage,$Counter,1);
$AsciiNumber = ord($LetterToEncrypt) + 3;
$ConvertedLetter = $ConvertedLetter + Chr($AsciiNumber);
}
echo $ConvertedLetter;
?>
</body>
</html>