From:             [EMAIL PROTECTED]
Operating system: Window 2000 server with IIS
PHP version:      4.0.6
PHP Bug Type:     Session related
Bug description:  Serious Ouput Problem in <input> tag

The session_register() seems accessing wrong memory address and causing
some strange bugs.
The following phtml shows the bugs. Please run it and see the ouput of the
source code from Internet Explorer.

----------------------------------------------------------
----------------------------------------------------------
<?
if (isset($PHPSESSID)) {
        session_id($PHPSESSID);
} 
session_register("strSessionLoginName","strSessionLoginId");
if (empty($strSessionLoginName)) {
        session_destroy();
}
?>
<HTML>
<BODY>
<FORM name='form_quest' method=post action=''>
        <TABLE border=0 cellspacing=0 align=center width="100%">
                <TR class='styTRQuestion10'>
                        <TD class='styTDQuestion1' width='94%'>
                                <? echo "It is a serious bug." ?>
                        </TD>
                </TR>
                <TR><TD class='styTDAnswer10'><TABLE>
                                <TR><TD class='styTDAnswer10'><INPUT type=radio 
name='f2_0' value="1-0"
onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD
style='padding-right:6px'>apple</TD>
<TD><INPUT type=radio name='f2_0' value='2-0' onchange=''
onKeyPress='return fncNoEnt(event)'></TD><TD
style='padding-right:6px'>banana</TD>
<TD><INPUT type=radio name='f2_0' value='4-0' onchange=''
onKeyPress='return fncNoEnt(event)'></TD><TD
style='padding-right:6px'>pear</TD></TR>
<TR><TD><INPUT type=radio name='f2_0' value='8-0' onchange=''
onKeyPress='return fncNoEnt(event)'></TD><TD
style='padding-right:6px'>orange</TD>
<TD><INPUT type=radio name='f2_0' value='16-0' onchange=''
onKeyPress='return fncNoEnt(event)'></TD><TD
style='padding-right:6px'>water-melon</TD>
<TD><INPUT type=radio name='f2_0' value='32-0' onchange=''
onKeyPress='return fncNoEnt(event)'></TD><TD
style='padding-right:6px'>sweet-melon</TD></TR>
                        </TABLE>
                </TD></TR>
        </TABLE>
        </FORM>
</BODY>
</HTML>


-----------------------------------------------------------
-----------------------------------------------------------

Here is the source output from internet explorer:

<HTML>
<BODY>
<FORM name='form_quest' method="post" action=''><input type="hidden"
name="PHPSESSID" value="5bc972fec5e1fc9f0166035c7f189f9e" />
        <TABLE border=0 cellspacing=0 align=center width="100%">
                <TR class='styTRQuestion10'>
                        <TD class='styTDQuestion1' width='94%'>
                                It is a serious bug.                    </TD>
                </TR>
                <TR><TD class='styTDAnswer10'><TABLE>
                                <TR><TD class='styTDAnswer10'><INPUT type="radio" 
name='f2_0'
value="1-0" onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD
style='padding-right:6px'>apple</TD>
<TD><INPUT type="radio" name='f2_0' value='2-0' onchange=''
onKeyPress='return fncNoEnt(event)'></TD><TD
style='padding-right:6px'>banana</TD>
<TD><INPUT type="radio" name='f2_0' value="'4-0'                           
                                                                           
                                      _ I  ?     ?                           </TD">
                < onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD
style='padding-right:6px'>pear</TD></TR>
<TR><TD><INPUT type="radio" name='f2_0' value='8-0' onchange=''
onKeyPress='return fncNoEnt(event)'></TD><TD
style='padding-right:6px'>orange</TD>
<TD><INPUT type="radio" name='f2_0' value='16-0' onchange=''
onKeyPress='return fncNoEnt(event)'></TD><TD
style='padding-right:6px'>water-melon</TD>
<TD><INPUT type="radio" name='f2_0' value='32-0' onchange=''
onKeyPress='return fncNoEnt(event)'></TD><TD
style='padding-right:6px'>sweet-melon</TD></TR>
                        </TABLE>
                </TD></TR>
        </TABLE>
        </FORM>
</BODY>
</HTML> 

-- 
Edit bug report at: http://bugs.php.net/?id=12593&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to