<?
$text = $_REQUEST['code'];
$final_output = "<img src='image.php?game=$_REQUEST['game']&color=$_REQUEST['color']&code=$text'>";
if (!$_REQUEST['game']) {
$final_output = "<b>Please go back and select a Game</b>";
}
if (!$_REQUEST['color']) {
$final_output = "<b>Please go back and select a Color</b>";
}
if (strlen($text) != 12) {
$final_output = "<b>Please go back and make sure to enter ONLY Numbers, no spaces or special characters. Make sure to enter exactly 12 numbers.</b>";
}
if (!is_numeric($text)) {
$final_output = "<b>Please go back and make sure to enter ONLY Numbers, no spaces or special characters.</b>";
}
?>