From: [EMAIL PROTECTED]
Operating system: linux
PHP version: 4.3.0
PHP Bug Type: Output Control
Bug description: "invalid" html output
This code produces html that doesn't pass the w3c code validator:
<form method=post action="Start.php?login">
<p>
Name:<br />
<input type="text" size=8 maxlength=8 name="name" value="$user"> <br
/>
Password:<br />
<input type="password" size=8 maxlength=8 name="password"
value="$pw><br />
<br />
<input type='submit' value='Log In'> <br />
</p>
</form>
The output code is:
<form method="post" action="Start.php?login"><input type="hidden"
name="PHPSESSID" value="c7d63b0826c43760e36c24ee481970a1">
<p>
Name:<br>
<input type="text" size="8" maxlength="8" name="name" value="xxxxxx">
<br>
Password:<br>
<input type="password" size="8" maxlength="8" name="password"
value="yyyyyyy"><br>
<br>
<input type="submit" value="Log In"> <br>
</p>
</form>
(name and password values bogus).
Obviously the problem is the hidden input emitted by php to handle the
sessions variables which html4 required to be after the <p> tag.
This "bug" has no effect that I can detect.
--
Edit bug report at http://bugs.php.net/?id=22156&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22156&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22156&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22156&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22156&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22156&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22156&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22156&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22156&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22156&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22156&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22156&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22156&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22156&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22156&r=gnused