OSDN Git Service

*** empty log message ***
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Fri, 22 Feb 2008 11:09:54 +0000 (11:09 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Fri, 22 Feb 2008 11:09:54 +0000 (11:09 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@1857 1a406e8e-add9-4483-a2c8-d8cac5b7c224

sample_site/euc/get1_euc.php
sample_site/euc/post1_euc.php
sample_site/sjis/get1_sjis.php
sample_site/sjis/post1_sjis.php
sample_site/utf8/get1_utf8.php
sample_site/utf8/post1_utf8.php

index d6f6433..5817e6c 100755 (executable)
@@ -9,6 +9,10 @@ header("Pragma: no-cache");
   <body>
 <?php
   $data = $_GET["\8fü¡"];
+  if (strlen($data) == 0) {
+    /* for PC */
+    $data = $_GET["&#58942;"];
+  }
 ?>
 <center>
 ³¨Ê¸»úÆþÎϤÎ\8eÃ\8e½\8eÄ(EUCJP¤ÇGET)
index dc2cd54..b4c0421 100644 (file)
@@ -9,6 +9,10 @@ header("Pragma: no-cache");
   <body>
 <?php
   $data = $_POST["\8fü¡"];
+  if (strlen($data) == 0) {
+    /* for PC */
+    $data = $_POST["&#58942;"];
+  }
 ?>
 <center>
 ³¨Ê¸»úÆþÎϤÎ\8eÃ\8e½\8eÄ(EUCJP)
index 7a027ff..521b398 100755 (executable)
@@ -9,6 +9,10 @@ header("Pragma: no-cache");
   <body>
 <?php
   $data = $_GET["ø\9f"];
+  if (strlen($data) == 0) {
+    /* for PC */
+    $data = $_GET["&#58942;"];
+  }
 ?>
 <center>
 \8aG\95\8e\9a\93ü\97Í\82ÌýÄ(SJIS\82ÅGET)
index 9894b78..7656d45 100644 (file)
@@ -9,6 +9,10 @@ header("Pragma: no-cache");
   <body>
 <?php
   $data = $_POST["ø\9f"];
+  if (strlen($data) == 0) {
+    /* for PC */
+    $data = $_POST["&#58942;"];
+  }
 ?>
 <center>
 \8aG\95\8e\9a\93ü\97Í\82ÌýÄ(SJIS\82ÅPOST)
@@ -19,7 +23,6 @@ header("Pragma: no-cache");
       <input type="submit" value="ùü" />
     </form>
 Îß½Ä\82³\82ê\82½\92l\82Í\81A\81A\81A<br>
-[
 <?php
   echo "HEX:[" . bin2hex($data) . "]<br>";
   echo "BIN:[" . $data . "]<br>";
index 72cdf4b..96da346 100755 (executable)
@@ -9,9 +9,13 @@ header("Pragma: no-cache");
   <body>
 <?php
   $data = $_GET[""];
+  if (strlen($data) == 0) {
+    /* for PC */
+    $data = $_GET["&#58942;"];
+  }
 ?>
 <center>
-絵文字入力のテスト(EUCJPでGET)
+絵文字入力のテスト(UTF8でGET)
 </center>
 <hr>
     <form name="" method="get" action="get1_utf8.php">
index 94cc01b..9c04659 100644 (file)
@@ -9,6 +9,10 @@ header("Pragma: no-cache");
   <body>
 <?php
   $data = $_POST[""];
+  if (strlen($data) == 0) {
+    /* for PC */
+    $data = $_POST["&#58942;"];
+  }
 ?>
 <center>
 絵文字入力のテスト(UTF8)