#21093 [Opn->Fbk]: PHPSESSID not being added to form action="" if input type="image" used

From: Date: Fri, 20 Dec 2002 00:52:43 +0000
Subject: #21093 [Opn->Fbk]: PHPSESSID not being added to form action="" if input type="image" used
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28049@lists.php.net to get a copy of this message
ID: 21093 Updated by: iliaa@php.net Reported By: jc@mega-bucks.co.jp -Status: Open +Status: Feedback Bug Type: Session related Operating System: Red Hat Linux 7.2 PHP Version: 4.2.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-12-19 03:28:17] jc@mega-bucks.co.jp I have session.auto_start = 1 in my php.ini. I find that the SID is not being added to a form's action="" value if the form contains a <input type="image"> tag ... This is a serious bug as it causes sessions to be lost if <input type="image"> buttons are used in a form. Pasted below is the output of PHP for one of my page swhere I use a form and in it there is an <input type="image"> tag. As you can see the SID is added to the src="" of the image but not to the action="" field of the form, where I believe it is the right place to put it ... Jc <form name="write" action="/hashi/html/market/market.html" method="GET" style="margin:0px";> <input type="hidden" name="write_review" value="true"> <input type="hidden" name="body" value="details"> <input type="hidden" name="pid" value="489000401024"> <table width="650" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td width="65"> <div class="marginleft20"><img src="img/yajirushi_review.gif" width="25" height="42" alt=""></div> </td> <td width="445" valign="bottom"><span class="size12">Ì´Ãæ¤Ë¤Ê¤Ã¤Æ¸«¤Þ¤·¤¿¡£¤½¤ó¤Ê´¶Æ°¤ò¤¢¤Ê¤¿¤â¥«¥¹¥¿¥Þ¡¼¥ì¥Ó¥å¡¼¤Ø½ñ¤­¹þ¤ß¤Þ¤»¤ó¤«¡©¥«¥¹¥¿¥Þ¡¼¥ì¥Ó¥å¡¼¤Ç¤Ï¥æ¡¼¥¶¡¼¤ÎÀ¸¤ÎÈ¿±þ¤ò¤ªÅÁ¤¨¤¤¤¿¤·¤Þ¤¹¡£</span></td> <td width="140" valign="bottom" align="right"><input type="image" name="toukou" src="img/b_writereview.gif?PHPSESSID=046e74dbd20eca0eb4f2fce3896dbc5e" width="118" height="23" alt="¥ì¥Ó¥å¡¼¤ò½ñ¤¯" border="0"></td> </tr> </table> </form> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21093&edit=1

« previous php.bugs (#28049) next »