#21093 [Fbk->Opn]: PHPSESSID not being added to form action="" if input type="image" used
| From: | jc at mega-bucks dot co dot jp | Date: | Wed, 01 Jan 2003 10:21:20 +0000 |
| Subject: | #21093 [Fbk->Opn]: 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-28868@lists.php.net to get a copy of this message | ||
ID: 21093
User updated by: jc@mega-bucks.co.jp
Reported By: jc@mega-bucks.co.jp
-Status: Feedback
+Status: Open
Bug Type: Session related
Operating System: Red Hat Linux 7.2
PHP Version: 4.2.3
New Comment:
I installed 4.3.0 and could not recreate the bug. The session ID is now
correctly added as a <input type="hidden" ...> field inside the <form>
</form> tags.
Still curious as to what was causing the bug, but since it's fixed I'm
quite happy to leave it at that.
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2002-12-19 18:52:42] iliaa@php.net
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
------------------------------------------------------------------------
[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