#21634 [Bgs]: Passing PHPSESSID with POST when there's only one input in the form error
| From: | pollita@php.net | Date: | Fri, 17 Jan 2003 17:00:52 +0000 |
| Subject: | #21634 [Bgs]: Passing PHPSESSID with POST when there's only one input in the form error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30367@lists.php.net to get a copy of this message | ||
ID: 21634
Updated by: pollita@php.net
Reported By: jsegura@cromosoma.com
Status: Bogus
Bug Type: Session related
Operating System: RH Linux 7.3
PHP Version: 4.3.0
New Comment:
As I told you in IRC, and you ignored.... TRY A SNAPSHOT.
http://snaps.php.net
Previous Comments:
------------------------------------------------------------------------
[2003-01-17 10:56:09] dmitri@netilla.com
I am experiencing the same problem. Here's the script:
------------------------------------------------------
<html>
<body>
<FORM method=post>
<INPUT TYPE="text" NAME=value>
<INPUT TYPE="submit" VALUE="submit">
</FORM>
</body>
</html>
<?
error_log("value: $value");
?>
------------------------------------------------------
after form is submitted with input, say, XXX, here's what is written to
error log:
value: XXXvalue=XXX
Changing the script to have more than one input value fixes the problem
(value is set to XXX).
I am using apache 2.0.43 and PHP 4.3.0 (DSO). Needless to say, I have
register_globals set to "on".
------------------------------------------------------------------------
[2003-01-14 19:16:11] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2003-01-14 09:18:34] jsegura@cromosoma.com
Hello!
I'm upgrading from PHP 4.1.2 to 4.3.0 and a strange thing is happening
to me. I've got a form with one and only one input:
<form name="form1" method="post" action="somePage.php">
<input type="hidden" name="PHPSESSID"
value="{FILLED_WITH_TEMPLATE_POWER}">
</form>
When submitting the form, next page is unable to continue the session
and I'm asked for a new login. Moreover, if I echo the session_id()
result it contains a strange value like:
<some_session_id>PHPSESSID=<the_same_session_id> instead of a single
session_id.
I'm not using enable-trans-sid and, the most surprising, works well if
I add a second dummy input field in the form.
Can anyone help me?
Thanks in advance.
Joan.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21634&edit=1