[PHP] strange problem with post method

2004-02-05 Thread Giuliano Ippoliti
Hi list!
Yesterday I've installed PHP 4.3.4 and Apache 1.3.29
on my Linux Mandrake 9.1 machine with a standard
procedure:
1.  cd apache_1.3.29
2.  ./configure
3.  cd ../php-4.3.4
4.  ./configure --with-apache=../apache_1.3.29
--enable-track-vars  make  make install
5. cd ../apache_1.3.29
6. ./configure
--activate-module=src/modules/php4/libphp4.a
7. make  make install
8. cd ../php-4.3.4
9. cp php.ini-dist /usr/local/lib/php.ini
10. In httpd.conf file: AddType
application/x-httpd-php .php

I've encounterd a problem with this snippet of code,
where I fill a form and I pass the data to a php page
that should visualize it. Here is the code:

//Login.php
html   
head   
titleTEST/title   
/head   
form method=post action=second.php   
brbrbr   
NAME : input type=text name=ident   
br   
PASSWORD :input type=password name=psw   
br   
input type=submit name=Submit value=Submit   
/form   
/body   
/html   

//second.php
?php
echo NAME = $ident br PASSWORD = $psw;
?

When I execute this code in my web page
http://members.lycos.co.uk/ippo80/Login.php, or in
another Apache server with PHP-4.2.3 not installed by
me, the name and password are correctly visualized
once I click the submit button:
NAME = myname
PASSWORD = mypassword
, but on my recently installed server I obtain
NAME =
PASSWORD =
indicating that variable values are not transmitted.
Have you any idea about the reason of this behaviour?
Thank you very much for the attention,

Giuliano 

__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] strange problem with post method

2004-02-05 Thread Giuliano Ippoliti

--- Jason Wong [EMAIL PROTECTED] wrote:
 On Thursday 05 February 2004 16:41, Giuliano
 Ippoliti wrote:
 
 [snip]
 
  9. cp php.ini-dist /usr/local/lib/php.ini
 
 Read the comments at the top of the file
 'php.ini-recommended'. It is the same 
 directory as the file 'php.ini-dist'.
 

Thank you very much Jason: the problem was originated
by register_globals = Off. I turned it into On and
now it works. However in the future I'll use
$_POST(...) to pass variables. 
Thank you very much again,

Giuliano

__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php