From: "php-general" <[EMAIL PROTECTED]> > 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... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php