|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-12 14:10 UTC] leoalassia at gmail dot com
[2005-12-12 14:19 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 03:00:01 2025 UTC |
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 ....