Re: PHP Basic's Problem with a simple script.

From: Date: Tue, 01 Jun 2004 15:39:22 +0000
Subject: Re: PHP Basic's Problem with a simple script.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-187354@lists.php.net to get a copy of this message
From: "php-general" <php-general@rf-funkinternet.at> > I use PHP Ver. 4.1.2 with apache 1.3.26 on a debian box. > In php.ini, "safe_mode" is off, and "register_globals" is on. > > I can enter names and submit them as often I like, but > the statement from the if-block is never executed, i.e. > the output "You have entered the following name: ..." > is never displayed. > > <?php > if ($dispatched) > { > echo "You have entered the following"; > echo " Name: $vn $nn<p>"; > } > ?> [snip] > <input type = "submit" name = "dispatched"> Are you clicking on the submit button to submit the form or pressing enter? If clicking on the button and this still isn't working, then register globals is OFF. Whoever told you it was ON is a damn liar and should be whipped and thrown in the brig for a couple weeks to teach them a lesson!!! If php.ini says it's ON, then you're looking at the wrong php.ini or PHP is reading another one (or using defaults). Look at the first block of a phpinfo() page: <?php phpinfo(); ?> to see where PHP is reading it's php.ini from or where it's expecting it. ---John Holmes...

« previous php.general (#187354) next »