#35645 [Opn]: it executes the same script twice

From: Date: Mon, 12 Dec 2005 13:10:21 +0000
Subject: #35645 [Opn]: it executes the same script twice
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90283@lists.php.net to get a copy of this message
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

« previous php.bugs (#90283) next »