hello,I have some difficulty passing variables in apache2 and php4.2.2 (module)combination.I set the register_globals=off
(that default),but still I cannot use
******$POST,$HTTP_POST_VARS**********,and,there is a strange scene I find:as follows,
<form method="post" action="addmsg.php?name=
sirarker&subject=hello&message=wrong&">.....
when I submit the form ,addmsg.php can also
get the information through $REQUEST["name"]and$_REQUEST["subject"]...
why method "POST" can but when it is replaced by "GET",there is no $_REQUEST variable.
I collect the server inforamtion here,can you find some ways out for me?
HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/msword, /
HTTP_REFERER=http://localhost/addmsg.html
HTTP_ACCEPT_LANGUAGE=zh-cn
CONTENT_TYPE=application/x-www-form-urlencoded
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
HTTP_HOST=localhost
CONTENT_LENGTH=91
HTTP_CONNECTION=Keep-Alive
HTTP_CACHE_CONTROL=no-cache
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32
SystemRoot=C:\WINDOWS
COMSPEC=C:\WINDOWS\system32\cmd.exe
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
WINDIR=C:\WINDOWS
SERVER_SIGNATURE=
Apache/2.0.39 Server at localhost Port 80
SERVER_SOFTWARE=Apache/2.0.39 (Win32) PHP/4.2.3-dev
SERVER_NAME=localhost
SERVER_ADDR=127.0.0.1
SERVER_PORT=80
REMOTE_ADDR=127.0.0.1
DOCUMENT_ROOT=C:/Program Files/Apache Group/Apache2/htdocs
SERVER_ADMIN=root@localhost.com
SCRIPT_FILENAME=C:/Program Files/Apache Group/Apache2/htdocs/addmsg.php
REMOTE_PORT=2286
GATEWAY_INTERFACE=CGI/1.1
SERVER_PROTOCOL=HTTP/1.1
REQUEST_METHOD=POST
QUERY_STRING=
REQUEST_URI=/addmsg.php
SCRIPT_NAME=/addmsg.php
PHP_SELF=/addmsg.php
argv=Array
argc=0
Thanks very much for listening.