[PHP-users 5581] PHP4.1.1で入力フォームからデータが取得できない

桝形 誠二 php-users@php.gr.jp
Wed, 20 Feb 2002 17:09:51 +0900


こんにちわ、桝形です。

PHP4.1.1をインストールして動作テストしているのですが、
入力フォームから送信したデータがなぜか取得できません。

PHP4.1.1は
http://nx.dip.jp:8080/php/php-4.1.1-multibyte-20020124.tar.gz
を使用させていただきました。

---------------+--------------
_GET["Test1"]  | 1  
_GET["Test2"]  | 2  
_GET["Submit"] | 送る
------------------------------

phpinfoではちゃんと値はきているようなのですが
データの表示ができていまません。

/test2.php?Test1=1&Test2=2&Submit=%91%97%82%E9

URLには問題なくくっついてきているのでプログラムの
タイプミスかな?と思いましたが、

test1.html
----------------------------------------------
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=Shift-JIS">
</head>
<body>
<form action="test2.php" method="GET">
日本語を入力1:<input type="text" name="Test1"><BR>
日本語を入力2:<input type="text" name="Test2">
<br>
<input type="submit" name="Submit" value="送る">
</form>
</body>
</html>
----------------------------------------------
test2.php
----------------------------------------------
<?
echo "[".$Test1."]<BR>\n";
echo "[".$Test2."]<BR>\n";
echo "[".$_GET["Test1"]."]<BR>\n";
echo "[".$_GET["Test2"]."]<BR>\n";
//phpinfo();
?>
----------------------------------------------
としか受け取り先ではやっておらず原因が掴めないで
います。

環境とPHPのコンパイルオプションは

OS         : RedHat Linux6.2J
Apache     : 1.3.23
(mod_auth_pgsql/0.9.8 DAV/1.0.3 mod_gzip/1.3.19.1a)
PostgreSQL : 7.2
MySQL      : 3.23.47
PHP        : 4.1.1
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-track-vars \
--enable-mbstr-enc-trans \
--enable-mbstring \
--with-mysql=/usr/local/mysql \
--with-pgsql=/usr/local/pgsql \
--with-gd=/usr/local/gd \
--with-jpeg-dir=/usr/local/jpeg \
--with-png-dir=/usr/local/png \
--with-ttf-dir=/usr/local/freetype \
--with-zlib-dir=/usr/local/zlib \
--with-pdflib=/usr/local/pdf \
--with-tiff-dir=/usr/local/tiff \
--enable-ftp \
--enable-calendar \
--enable-bcmath \
--enable-trans-sid \
--disable-debug

output_buffering  = On
output_handler    = mb_output_handler
mbstring.internal_encoding    = EUC_JP
mbstring.http_input           = auto
mbstring.http_output          = SJIS
mbstring.detect_order         = auto
mbstring.substitute_character = auto

ただ、これに関してはoutput_bufferingをOffに
してもOnにしても結果は変わらず何も表示されません。

phpinfoではどちらもデータは渡ってきているよです。

何かお気づきの点がありましたご指摘願います。
_______________________

  桝形 誠二( Masugata Seiji )
  E-Mail : s.masugata@digicom.dnp.co.jp

 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄