ID: 21696 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Unknown/Other Function Operating System: Windows XP PHP Version: 4.3.0 New Comment:
(continue) In fact, the error is simplier: when I run <? echo $a; ?> in machine 1, it's ok!! But in machine 2, it returns Notice: Undefined variable: a in test.php on line 2 Any clues??? Thanks Previous Comments: ------------------------------------------------------------------------ [2003-01-16 15:26:17] [EMAIL PROTECTED] I'm using PHP 4.3.0 as ISAPI in 2 WinXP machines, running Apache 2.0.43. PHP was installed at same folders and I'm using the same PHP.INI. In machine 1, everything works great. In machine 2, everything works great too BUT when I'm using checkbox inside form posting: echo "<form method=post action=form2.php>"; echo "<br>Are married?"; echo "<input type=checkbox name=married value='s'>"; echo "</form>"; the form2.php is: <? echo "<html><body>"; $married = $HTTP_POST_VARS["married"]; echo "married = ".$married; echo "</body></html>"; ?> the response is: Notice: Undefined index: married in form2.php on line 2 In machine 1, forms with checkbox are working great, but in machine 2, it doesn't. Any ideas?? PHP.INI is the same, global_variables are OFF. Thanks in advance Ivan Pisa ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21696&edit=1