ID: 35645 Updated by: [EMAIL PROTECTED] Reported By: leoalassia at gmail dot com -Status: Open +Status: Bogus Bug Type: Session related Operating System: UNIX PHP Version: 4.4.1 New Comment:
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. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2005-12-12 14:10:20] leoalassia at gmail dot com I wrote wrong the link, it is: <a href="file.php?content=content.php">click here to next count</a> ------------------------------------------------------------------------ [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