Index: /temp/trunk/html/test/uehara/captcha/ajax_captcha/captcha.php
===================================================================
--- /temp/trunk/html/test/uehara/captcha/ajax_captcha/captcha.php	(revision 10447)
+++ /temp/trunk/html/test/uehara/captcha/ajax_captcha/captcha.php	(revision 10450)
@@ -1,31 +1,20 @@
 <?
-/*
-	This is the back-end PHP file for the How to Create CAPTCHA Protection using PHP and AJAX Tutorial
-	
-	You may use this code in your own projects as long as this 
-	copyright is left in place.  All code is provided AS-IS.
-	This code is distributed in the hope that it will be useful,
- 	but WITHOUT ANY WARRANTY; without even the implied warranty of
- 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-	
-	For the rest of the code visit http://www.WebCheatSheet.com
-	
-	Copyright 2006 WebCheatSheet.com	
-*/
-
-//Continue the session
+// ¥»¥Ã¥·¥ç¥ó¥¹¥¿¡¼¥È
 session_start();
 
-//Make sure that the input come from a posted form. Otherwise quit immediately
-if ($_SERVER["REQUEST_METHOD"] <> "POST") 
- die("You can only reach this page by posting from the html form");
+// ÆþÎÏÃÍ¤ò¼õ¤±¼è¤ë
+$input_data = $_POST["input_data"];
+$session_data = $_SESSION["security_code"];
 
-//Check if the securidy code and the session value are not blank 
-//and if the input text matches the stored text
-if ( ($_REQUEST["txtCaptcha"] == $_SESSION["security_code"]) && 
-    (!empty($_REQUEST["txtCaptcha"]) && !empty($_SESSION["security_code"])) ) {
-  echo "<h1>Test successful!</h1>";
+// POST¥Ç¡¼¥¿¤Î¤ß¼õ¤±ÉÕ¤±¤ë
+if ($input_data == "") { 
+ echo "FORM¤«¤éÆþÎÏ¤·¤Æ²¼¤µ¤¤¡£";
+ exit;
+}
+// ¥»¥Ã¥·¥ç¥ó¤ÎÃÍ¤¬Àµ¤·¤¤¤«¥Á¥§¥Ã¥¯
+if (($input_data == $session_data) && ($input_data != "" && $session_data != "")) {
+	echo "Ç§¾ÚÀ®¸ù¡ª¡ª";
 } else {
-  echo "<h1>Test failed! Try again!</h1>";
+	echo "Ç§¾Ú¼ºÇÔ¡ª¡ª";
 }
 ?>
