Ok, I tried to use $_POST and it's not working with apache 2
This is my code
file test.php
<form action=test.php method=post>
<input type=text name=champ value='valeur'>
<input type=submit>
</form>
<?
echo "RESULTAT=".$champ."<br>";
echo "RESULTAT _POST=".$_POST["champ"]."<br>";
echo "RESULTAT print_r(_POST)=";
print_r($_POST);
?>
With apache 2 it gives me :
RESULTAT=valeurchamp=valeur
RESULTAT _POST=valeurchamp=valeur
RESULTAT print_r(_POST)=Array ( [champ] => valeurchamp=valeur )
with apache 1.3
RESULTAT=valeur
RESULTAT _POST=valeur
RESULTAT print_r(_POST)=Array ( [champ] => valeur )
j'ai essaye ca avec un autre serveur sous RH9, meme resultat !
I tried with another RH9 server and it is the same problem !
Mys phpinfo :
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen 1 1
always_populate_raw_post_data 0 0
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2039 2039
expose_php On On
extension_dir /usr/lib/php4 /usr/lib/php4
file_uploads 1 1
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF9900 #FF9900
highlight.default #0000CC #0000CC
highlight.html #000000 #000000
highlight.keywrd #006600 #006600
highlight.string #CC0000 #CC0000
html_errors On On
ignore_user_abort Off Off
implicit_flush Off Off
include_path /home/i-maj.com/includes/ .:/usr/share/pear
log_errors Off Off
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 300 300
memory_limit 16M 16M
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 32M 32M
precision 14 14
register_argc_argv Off Off
register_globals On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from [email]me@localhost.com[/email] [email]me@localhost.com[/email]
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
short_open_tag On On
SMTP localhost localhost
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 20M 32M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance Off Off