ID: 35645
User updated by: leoalassia at gmail dot com
Reported By: leoalassia at gmail dot com
Status: Open
Bug Type: Session related
Operating System: UNIX
PHP Version: 4.4.1
New Comment:
I wrote wrong the link, it is:
<a href="file.php?content=content.php">click here to next count</a>
Previous Comments:
------------------------------------------------------------------------
[2005-12-12 14:06:22] leoalassia at gmail dot com
Description:
------------
If you clic in the link to the same file, that only increments a count
var in the session, you will see that it does twice.
i think that the problem is that "background" is written instead of
"bgcolor".
Reproduce code:
---------------
file.php
--------
<table><tr><td background="#000000">
</td></tr></table>
<table><tr><td>require ($content);</td></tr></table>
content.php
-----------
<?php
if (!session_is_registered('countt')) {
session_register("countt");
$countt = 0;
}
else {
$countt++;
}
echo $countt;
?>
<a href="file.php?$content=content.php">click here to next count</a>
Expected result:
----------------
0 first time, next 1, 2, 3 ....
Actual result:
--------------
0 first time, next 2, 4, 6 ....
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35645&edit=1