<?php
$names=array("Fred", "Rob", "Lisa"); if($_POST["submit"]){
if($_POST["name"]){
foreach($names as $name){
if($_POST["name"]==$name){
echo "I know you! Your name is ".$name;
$knowYou=1;
}
}
if(!$knowYou){
echo "I dont know you, ".$name;
}
} else {
echo "Please enter your name";
}
}
?>
PD9waHAKCSRuYW1lcz1hcnJheSgiRnJlZCIsICJSb2IiLCAiTGlzYSIpOwoJaWYoJF9QT1NUWyJzdWJtaXQiXSl7CgkJaWYoJF9QT1NUWyJuYW1lIl0pewoJCQlmb3JlYWNoKCRuYW1lcyBhcyAkbmFtZSl7CgkJCQlpZigkX1BPU1RbIm5hbWUiXT09JG5hbWUpewoJCQkJCWVjaG8gIkkga25vdyB5b3UhIFlvdXIgbmFtZSBpcyAiLiRuYW1lOwoJCQkJCSRrbm93WW91PTE7CgkJCQl9IAoJCQl9CgkJCWlmKCEka25vd1lvdSl7CgkJCQllY2hvICJJIGRvbnQga25vdyB5b3UsICIuJG5hbWU7CgkJCX0KCQl9IGVsc2UgewoJCQllY2hvICJQbGVhc2UgZW50ZXIgeW91ciBuYW1lIjsKCQl9Cgl9Cj8+