#21696 [Opn->Fbk]: Header('Location: ... ') problem
| From: | hholzgra@php.net | Date: | Fri, 17 Jan 2003 15:10:08 +0000 |
| Subject: | #21696 [Opn->Fbk]: Header('Location: ... ') problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30356@lists.php.net to get a copy of this message | ||
ID: 21696
Updated by: hholzgra@php.net
-Summary: Checkbox is strange in POST event
-Reported By: ivanpisa@dfm.ffclrp.usp.br
+Reported By: pthiebaud@labeltechnologies.com
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
-Operating System: Windows XP
+Operating System: Windows 2000
PHP Version: 4.3.0
New Comment:
are you sure that your error_reporting settings are really the same on
both boxes? (pleas check in phpinfo() output)
the message you see is only produced if E_NOTICE reporting is enabled
...
Previous Comments:
------------------------------------------------------------------------
[2003-01-17 05:18:53] ivanpisa@dfm.ffclrp.usp.br
First, thanks for your attention.
a) I'm running the same script in other machine, and it's passing NULL
("") string. I suppose the other machine, with the same configuration,
should have the same behavior.
b) Do I have to create the variable? Again, it's running in other
machine with no problems. And all of my variables are created in the
moment I need them. Did I miss something about PHP?
c) I'll test.
d) You are right, sorry, I mean register_globals is off
e) I'll read.
------------------------------------------------------------------------
[2003-01-16 16:00:16] philip@php.net
Four things:
a) Only checked checkboxes pass values.
b) Why do you expect $a to exist at all? I see no code that creates
$a.
c) Have your test (form2.php) simply be:
print_r($HTTP_POST_VARS);
d) I believe you mean register_globals is off, there is no such thing
as global_variables.
e) http://www.php.net/variables.external
------------------------------------------------------------------------
[2003-01-16 15:43:31] tularis@php.net
ARGH! actually, ignore that comment... I'm talking bs right now :|
------------------------------------------------------------------------
[2003-01-16 15:39:54] tularis@php.net
I'm not sure if it'll make any difference, but try changing this line:
echo '<input type=checkbox name=married value="s">';
since ' is not supported as a valid HTML quote (that is, I THINK it
isn't :S)
------------------------------------------------------------------------
[2003-01-16 15:29:28] ivanpisa@dfm.ffclrp.usp.br
(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
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21696
--
Edit this bug report at http://bugs.php.net/?id=21696&edit=1